Align text to grid in ConTeXtAlign multi-line section head on the gridplaceongrid and moveongrid not working in ConTeXtGrid on aligned equations in ConTeXtWhen I activate grid layout in ConTeXt, empty lines inexplicably appearContext: Placing float (figure) and caption-top at same height on gridHeadings height and grid in ConTeXTWhy is grid typesetting available in ConTeXt?ConTeXt: How do a hrule beneath title in grid mode?Context: defineparagraphs aligned to grid?Align figure on a grid by it's top edge
What typically incentivizes a professor to change jobs to a lower ranking university?
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
Adding span tags within wp_list_pages list items
Windows 98 hangs after entering password on fresh install
What's the point of deactivating Num Lock on login screens?
Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?
Why does Kotter return in Welcome Back Kotter?
How to write a macro that is braces sensitive?
Email Account under attack (really) - anything I can do?
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Why do falling prices hurt debtors?
What would happen to a modern skyscraper if it rains micro blackholes?
Why not use SQL instead of GraphQL?
What do you call a Matrix-like slowdown and camera movement effect?
Why do I get two different answers for this counting problem?
Why doesn't H₄O²⁺ exist?
TGV timetables / schedules?
Mage Armor with Defense fighting style (for Adventurers League bladeslinger)
How could an uplifted falcon's brain work?
Is a tag line useful on a cover?
Why are 150k or 200k jobs considered good when there are 300k+ births a month?
An academic/student plagiarism
Theorems that impeded progress
Smoothness of finite-dimensional functional calculus
Align text to grid in ConTeXt
Align multi-line section head on the gridplaceongrid and moveongrid not working in ConTeXtGrid on aligned equations in ConTeXtWhen I activate grid layout in ConTeXt, empty lines inexplicably appearContext: Placing float (figure) and caption-top at same height on gridHeadings height and grid in ConTeXTWhy is grid typesetting available in ConTeXt?ConTeXt: How do a hrule beneath title in grid mode?Context: defineparagraphs aligned to grid?Align figure on a grid by it's top edge
Guys am working on a page title and I need align some text to grid in definemakeup
MWE:
showframe
showgrid
definemakeup[custom][headerstate=none,footerstate=none]
setuplayout[custom][grid=yes,backspace=30mm]
setuplayout[grid=yes,backspace=30mm]
setupwhitespace[big]
starttext
startmakeup[custom]
setupwhitespace[big]
input wardpar
input ward
stopmakeup
input wardpar
input ward
stoptext
As you can see, commands like backspace=
are working when setuplayout
is used, but grid=yes
.
EDIT:
Thanks for the answers DG' and Aditya, the option grid=high
is very close from what am looking for, but it fails when i use another font eg. sans serif.
See the following MWE:
showgrid
definefontfamily [mainface][rm][TeX Gyre Pagella]
definefontfamily [mainface][ss][TeX Gyre Heros]
setupbodyfont[mainface,
sans,%<---
]
setuplayout[grid=normal]
definemakeup[titlepage][
headerstate=none,
footerstate=none,
]
setuplayout[titlepage][
grid=high,
backspace=30mm,
]
starttext
startmakeup[titlepage]
input wardblank
input ward
stopmakeup
input wardblank
input ward
stoptext
context grid-typesetting
add a comment |
Guys am working on a page title and I need align some text to grid in definemakeup
MWE:
showframe
showgrid
definemakeup[custom][headerstate=none,footerstate=none]
setuplayout[custom][grid=yes,backspace=30mm]
setuplayout[grid=yes,backspace=30mm]
setupwhitespace[big]
starttext
startmakeup[custom]
setupwhitespace[big]
input wardpar
input ward
stopmakeup
input wardpar
input ward
stoptext
As you can see, commands like backspace=
are working when setuplayout
is used, but grid=yes
.
EDIT:
Thanks for the answers DG' and Aditya, the option grid=high
is very close from what am looking for, but it fails when i use another font eg. sans serif.
See the following MWE:
showgrid
definefontfamily [mainface][rm][TeX Gyre Pagella]
definefontfamily [mainface][ss][TeX Gyre Heros]
setupbodyfont[mainface,
sans,%<---
]
setuplayout[grid=normal]
definemakeup[titlepage][
headerstate=none,
footerstate=none,
]
setuplayout[titlepage][
grid=high,
backspace=30mm,
]
starttext
startmakeup[titlepage]
input wardblank
input ward
stopmakeup
input wardblank
input ward
stoptext
context grid-typesetting
2
Themakeup
environment doesn’t support grid snapping but this shouldn’t matter for a simple title page or full page chapter etc. title. Please describe what exactly you’re trying to achieve and we can provide you a solution.
– Wolfgang Schuster
Jul 21 '16 at 8:26
add a comment |
Guys am working on a page title and I need align some text to grid in definemakeup
MWE:
showframe
showgrid
definemakeup[custom][headerstate=none,footerstate=none]
setuplayout[custom][grid=yes,backspace=30mm]
setuplayout[grid=yes,backspace=30mm]
setupwhitespace[big]
starttext
startmakeup[custom]
setupwhitespace[big]
input wardpar
input ward
stopmakeup
input wardpar
input ward
stoptext
As you can see, commands like backspace=
are working when setuplayout
is used, but grid=yes
.
EDIT:
Thanks for the answers DG' and Aditya, the option grid=high
is very close from what am looking for, but it fails when i use another font eg. sans serif.
See the following MWE:
showgrid
definefontfamily [mainface][rm][TeX Gyre Pagella]
definefontfamily [mainface][ss][TeX Gyre Heros]
setupbodyfont[mainface,
sans,%<---
]
setuplayout[grid=normal]
definemakeup[titlepage][
headerstate=none,
footerstate=none,
]
setuplayout[titlepage][
grid=high,
backspace=30mm,
]
starttext
startmakeup[titlepage]
input wardblank
input ward
stopmakeup
input wardblank
input ward
stoptext
context grid-typesetting
Guys am working on a page title and I need align some text to grid in definemakeup
MWE:
showframe
showgrid
definemakeup[custom][headerstate=none,footerstate=none]
setuplayout[custom][grid=yes,backspace=30mm]
setuplayout[grid=yes,backspace=30mm]
setupwhitespace[big]
starttext
startmakeup[custom]
setupwhitespace[big]
input wardpar
input ward
stopmakeup
input wardpar
input ward
stoptext
As you can see, commands like backspace=
are working when setuplayout
is used, but grid=yes
.
EDIT:
Thanks for the answers DG' and Aditya, the option grid=high
is very close from what am looking for, but it fails when i use another font eg. sans serif.
See the following MWE:
showgrid
definefontfamily [mainface][rm][TeX Gyre Pagella]
definefontfamily [mainface][ss][TeX Gyre Heros]
setupbodyfont[mainface,
sans,%<---
]
setuplayout[grid=normal]
definemakeup[titlepage][
headerstate=none,
footerstate=none,
]
setuplayout[titlepage][
grid=high,
backspace=30mm,
]
starttext
startmakeup[titlepage]
input wardblank
input ward
stopmakeup
input wardblank
input ward
stoptext
context grid-typesetting
context grid-typesetting
edited Jul 21 '16 at 6:09
jl4c
asked Jul 19 '16 at 23:34
jl4cjl4c
1056
1056
2
Themakeup
environment doesn’t support grid snapping but this shouldn’t matter for a simple title page or full page chapter etc. title. Please describe what exactly you’re trying to achieve and we can provide you a solution.
– Wolfgang Schuster
Jul 21 '16 at 8:26
add a comment |
2
Themakeup
environment doesn’t support grid snapping but this shouldn’t matter for a simple title page or full page chapter etc. title. Please describe what exactly you’re trying to achieve and we can provide you a solution.
– Wolfgang Schuster
Jul 21 '16 at 8:26
2
2
The
makeup
environment doesn’t support grid snapping but this shouldn’t matter for a simple title page or full page chapter etc. title. Please describe what exactly you’re trying to achieve and we can provide you a solution.– Wolfgang Schuster
Jul 21 '16 at 8:26
The
makeup
environment doesn’t support grid snapping but this shouldn’t matter for a simple title page or full page chapter etc. title. Please describe what exactly you’re trying to achieve and we can provide you a solution.– Wolfgang Schuster
Jul 21 '16 at 8:26
add a comment |
1 Answer
1
active
oldest
votes
Makeup doesn't play well with grid, because basically it's a vbox
. In this case, internally there is a dontleavhmode
that adds a vertical space, and its effect can be compensate using the top option and guessing the value by try-and-error:
showgrid
%
definefontfamily [mainface][rm][TeX Gyre Pagella]
definefontfamily [mainface][ss][TeX Gyre Heros]
setupbodyfont[mainface,
sans,%<---
]
%
%
setuplayout[grid=normal]
%
definemakeup[titlepage][
headerstate=none,
footerstate=none,
]
setupmakeup[titlepage][
top=vskip-0.75em,
bottom=,]
setuplayout[titlepage][
backspace=30mm,
]
starttext
startmakeup[titlepage]
input wardblank[line]
input ward
stopmakeup
input wardblank[line]
input ward
stoptext
You can also use top=vskip-0.75emvskip10lineheight
if you want to set the position of the box at 10 lines from the top of the text area.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f320141%2falign-text-to-grid-in-context%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Makeup doesn't play well with grid, because basically it's a vbox
. In this case, internally there is a dontleavhmode
that adds a vertical space, and its effect can be compensate using the top option and guessing the value by try-and-error:
showgrid
%
definefontfamily [mainface][rm][TeX Gyre Pagella]
definefontfamily [mainface][ss][TeX Gyre Heros]
setupbodyfont[mainface,
sans,%<---
]
%
%
setuplayout[grid=normal]
%
definemakeup[titlepage][
headerstate=none,
footerstate=none,
]
setupmakeup[titlepage][
top=vskip-0.75em,
bottom=,]
setuplayout[titlepage][
backspace=30mm,
]
starttext
startmakeup[titlepage]
input wardblank[line]
input ward
stopmakeup
input wardblank[line]
input ward
stoptext
You can also use top=vskip-0.75emvskip10lineheight
if you want to set the position of the box at 10 lines from the top of the text area.
add a comment |
Makeup doesn't play well with grid, because basically it's a vbox
. In this case, internally there is a dontleavhmode
that adds a vertical space, and its effect can be compensate using the top option and guessing the value by try-and-error:
showgrid
%
definefontfamily [mainface][rm][TeX Gyre Pagella]
definefontfamily [mainface][ss][TeX Gyre Heros]
setupbodyfont[mainface,
sans,%<---
]
%
%
setuplayout[grid=normal]
%
definemakeup[titlepage][
headerstate=none,
footerstate=none,
]
setupmakeup[titlepage][
top=vskip-0.75em,
bottom=,]
setuplayout[titlepage][
backspace=30mm,
]
starttext
startmakeup[titlepage]
input wardblank[line]
input ward
stopmakeup
input wardblank[line]
input ward
stoptext
You can also use top=vskip-0.75emvskip10lineheight
if you want to set the position of the box at 10 lines from the top of the text area.
add a comment |
Makeup doesn't play well with grid, because basically it's a vbox
. In this case, internally there is a dontleavhmode
that adds a vertical space, and its effect can be compensate using the top option and guessing the value by try-and-error:
showgrid
%
definefontfamily [mainface][rm][TeX Gyre Pagella]
definefontfamily [mainface][ss][TeX Gyre Heros]
setupbodyfont[mainface,
sans,%<---
]
%
%
setuplayout[grid=normal]
%
definemakeup[titlepage][
headerstate=none,
footerstate=none,
]
setupmakeup[titlepage][
top=vskip-0.75em,
bottom=,]
setuplayout[titlepage][
backspace=30mm,
]
starttext
startmakeup[titlepage]
input wardblank[line]
input ward
stopmakeup
input wardblank[line]
input ward
stoptext
You can also use top=vskip-0.75emvskip10lineheight
if you want to set the position of the box at 10 lines from the top of the text area.
Makeup doesn't play well with grid, because basically it's a vbox
. In this case, internally there is a dontleavhmode
that adds a vertical space, and its effect can be compensate using the top option and guessing the value by try-and-error:
showgrid
%
definefontfamily [mainface][rm][TeX Gyre Pagella]
definefontfamily [mainface][ss][TeX Gyre Heros]
setupbodyfont[mainface,
sans,%<---
]
%
%
setuplayout[grid=normal]
%
definemakeup[titlepage][
headerstate=none,
footerstate=none,
]
setupmakeup[titlepage][
top=vskip-0.75em,
bottom=,]
setuplayout[titlepage][
backspace=30mm,
]
starttext
startmakeup[titlepage]
input wardblank[line]
input ward
stopmakeup
input wardblank[line]
input ward
stoptext
You can also use top=vskip-0.75emvskip10lineheight
if you want to set the position of the box at 10 lines from the top of the text area.
edited 6 mins ago
Dave Jarvis
4,60684084
4,60684084
answered Jul 22 '16 at 11:04
Luigi ScarsoLuigi Scarso
54624
54624
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f320141%2falign-text-to-grid-in-context%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
The
makeup
environment doesn’t support grid snapping but this shouldn’t matter for a simple title page or full page chapter etc. title. Please describe what exactly you’re trying to achieve and we can provide you a solution.– Wolfgang Schuster
Jul 21 '16 at 8:26