Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke



On 12/23/19 3:33 PM, Henri Menke wrote:

On 12/23/19 2:30 PM, Rik Kabel wrote:


On 12/22/2019 17:40, mf wrote:

Il 22/12/19 22:19, Rik Kabel ha scritto:

List,

Is there a way in ConTeXt to adjust the left-side kern for one
character? The cap J in the font I am using is being set too close to
the preceding characters and I would rather not insert a thinspace
before each. (Inserting a thinspace is sufficient, but finer control
is welcome.)


\definecharacterspacing[distantJ]
\setupcharacterspacing[distantJ]["004A][left=.15,alternative=1] % 004A
is the unicode hex index of letter J
\starttext
    normal: AJB\par
    \setcharacterspacing[distantJ] more space on the left: AJB\par
    \resetcharacterspacing normal again: AJB\par
\stoptext


Thank you for that, Massi.

Unfortunately, that is too blunt an instrument in this case -- in
addition to the body font where the problem exists, it works on the
heading and titling font, which does not share the problem.

As Henri's answer hints, I was a bit unclear in my request. It is a kern
between a word space and the cap J that is the issue. Perhaps a font
feature file is the place to do such a thing.


\startluacode
fonts.handlers.otf.addfeature {
  name = "kern",
  type = "kern",
  data = {
  [" "] = {
  ["J"] = 1000 % exaggerated value


Should of course be a Lua comment

["J"] = 1000 -- exaggerated value


  }
  }
}
\stopluacode

\setupbodyfont[modern] % have to reload the font

\starttext

No Jokes!

\stoptext


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke

On 12/23/19 2:30 PM, Rik Kabel wrote:


On 12/22/2019 17:40, mf wrote:

Il 22/12/19 22:19, Rik Kabel ha scritto:

List,

Is there a way in ConTeXt to adjust the left-side kern for one
character? The cap J in the font I am using is being set too close to
the preceding characters and I would rather not insert a thinspace
before each. (Inserting a thinspace is sufficient, but finer control
is welcome.)


\definecharacterspacing[distantJ]
\setupcharacterspacing[distantJ]["004A][left=.15,alternative=1] % 004A
is the unicode hex index of letter J
\starttext
   normal: AJB\par
   \setcharacterspacing[distantJ] more space on the left: AJB\par
   \resetcharacterspacing normal again: AJB\par
\stoptext


Thank you for that, Massi.

Unfortunately, that is too blunt an instrument in this case -- in
addition to the body font where the problem exists, it works on the
heading and titling font, which does not share the problem.

As Henri's answer hints, I was a bit unclear in my request. It is a kern
between a word space and the cap J that is the issue. Perhaps a font
feature file is the place to do such a thing.


\startluacode
fonts.handlers.otf.addfeature {
name = "kern",
type = "kern",
data = {
[" "] = {
["J"] = 1000 % exaggerated value
}
}
}
\stopluacode

\setupbodyfont[modern] % have to reload the font

\starttext

No Jokes!

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Rik Kabel


On 12/22/2019 17:40, mf wrote:

Il 22/12/19 22:19, Rik Kabel ha scritto:

List,

Is there a way in ConTeXt to adjust the left-side kern for one 
character? The cap J in the font I am using is being set too close to 
the preceding characters and I would rather not insert a thinspace 
before each. (Inserting a thinspace is sufficient, but finer control 
is welcome.)



\definecharacterspacing[distantJ]
\setupcharacterspacing[distantJ]["004A][left=.15,alternative=1] % 004A 
is the unicode hex index of letter J

\starttext
  normal: AJB\par
  \setcharacterspacing[distantJ] more space on the left: AJB\par
  \resetcharacterspacing normal again: AJB\par
\stoptext


Thank you for that, Massi.

Unfortunately, that is too blunt an instrument in this case -- in 
addition to the body font where the problem exists, it works on the 
heading and titling font, which does not share the problem.


As Henri's answer hints, I was a bit unclear in my request. It is a kern 
between a word space and the cap J that is the issue. Perhaps a font 
feature file is the place to do such a thing.


--
Rik

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread mf

Il 22/12/19 22:19, Rik Kabel ha scritto:

List,

Is there a way in ConTeXt to adjust the left-side kern for one 
character? The cap J in the font I am using is being set too close to 
the preceding characters and I would rather not insert a thinspace 
before each. (Inserting a thinspace is sufficient, but finer control is 
welcome.)



\definecharacterspacing[distantJ]
\setupcharacterspacing[distantJ]["004A][left=.15,alternative=1] % 004A 
is the unicode hex index of letter J

\starttext
  normal: AJB\par
  \setcharacterspacing[distantJ] more space on the left: AJB\par
  \resetcharacterspacing normal again: AJB\par
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke

On 12/23/19 10:19 AM, Rik Kabel wrote:

List,

Is there a way in ConTeXt to adjust the left-side kern for one 
character?


No, kerns always come in pairs.


The cap J in the font I am using is being set too close to
the preceding characters and I would rather not insert a thinspace 
before each. (Inserting a thinspace is sufficient, but finer control

is welcome.)


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Adjust kern for one character

2019-12-22 Thread Rik Kabel

List,

Is there a way in ConTeXt to adjust the left-side kern for one 
character? The cap J in the font I am using is being set too close to 
the preceding characters and I would rather not insert a thinspace 
before each. (Inserting a thinspace is sufficient, but finer control is 
welcome.)


--
Rik

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Rik Kabel

On 12/22/2019 06:08, Hans Hagen wrote:


btw, this happens often, like with oldstyle, the wished default is the 
hard coded default so one has to enable/disable


now, what you miss is that you define a font without applying any 
features ...




Thank you, Hans,

I see now that SS01 reverses the default setting for the font. The 
default for the italic faces is the single-storey form, so I need only 
apply the changed feature to the upright faces to get what I want.


--
Rik


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
Many thanks Wolfgang and Pablo.

And, Hans, I have already included this example for the Cookbook (with 
the three differing solution), as you will see from the path name of the 
attached PDF :).

Wolfgang, I just used your first solution, and it worked great.  I don't 
know whether the mailing-list daemon will let through a PDF, but I am 
enclosing the current (almost final) version of the table place card 
(with my daughter's name).

The figure to the left is an Apollonius Gasket of tangential circles 
made with MetaPost signifying all the family connections that each 
partner brings in creating a new union.  The code is from Denis Roegel, 
who quickly responded when I was unable to piece together a working 
example from his 2005 TUGboat article:

https://www.tug.org/TUGboat/tb26-1/tb82roegel.pdf

I've resorted to layers with explicit positioning for now, as well as 
having to compile the MetaPost explicitly and then hand edit out all 
references to cmmr in the resulting PS, but at least I have a working 
template.

If there are other suggestions to better optimize, I'm all ears.  In 
particular I would like to place each name vertically centred in right 
one-third of the card, as well as using \startuseMPgraphic for direct 
compilation from ConTeXt.

Many thanks for all the help.

>>> SNIPPET <<<

\startbuffer[tblcard]
\strut
\definelayer[tblplacecard]
\setlayer[tblplacecard][x=-1em,y=1em]{%
\externalfigure[figures/apollonius/apollonius.103][width=2.0in]}
\switchtobodyfont[nameface]
\setlayer[tblplacecard][x=10em,y=3.0em]%
{\tfg\it\color[orangered]{Vidya}}
\flushlayer[tblplacecard]
\stopbuffer

\starttext
\setupcolors[state=start]

%%% 1. Show the frame and layout information.
\showframe
%\showsetups
%\showlayout

\getbuffer[tblcard]
\page
\getbuffer[tblcard]
\stoptext

On 22Dec19, Wolfgang Schuster wrote:
>
> \setuparranging[1*2-Conference]

-- 
Pavneet Arora   m: +1 647-406-6843
Waroc Informatike: pavneet_ar...@waroc.com


tblplacecards.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to use together lmt_axis, lmt_grid and lmt_function

2019-12-22 Thread Otared Kavian
Hi,

I am experimenting the new LuaMetaTeX features introduced recently, but I can't 
get the built-in features together.

To explain the problem I encounter, I want to draw the graph of a function on a 
grid in which the x-axis and the y-axis are alos drawn.
Now lmtx has the « instances » (if I am not wrong…) named lmt_axis, lmt_grid 
and lmt_function which separately work fine, but I dont see how to use them 
simultaneously by keeping the correct scaling. 
In the minimal example below, copied from luametafun.pdf, the graph of the 
function $f(x) := (x - 1)^2$ should be drawn by showing its minimum at $x = 1$, 
and its value at $x = 0$ should be equal to 1. However the graph on the grid 
does not show this. Moreover the axes do not match the grid.

This means that I have not understood how to give the same units and scales in 
the three instances lmt_axis, lmt_grid and lmt_function.

Thanks for any help: Otared K.
PS: here is a minimal example
% begin grid-axis-function.tex
\starttext
\startplacefigure 
\startMPcode{doublefun} 
draw lmt_grid [
nx = 10, 
ny = 10,
dx = 1, 
dy = 1 
] xsized 5cm withpen pencircle scaled .1pt withcolor "darkblue" ;

draw lmt_axis [
nx = 10,
ny = 10,
dx = 1, 
dy = 1, 
] xsized 5cm withpen pencircle scaled .5pt withcolor "darkred" ;

draw lmt_function [
xmin =  0, xmax = 2, xstep = .05,
ymin = 0, ymax =  1.5,
code = "(x - 1)*(x - 1)", 
] xsized 5cm withpen pencircle scaled .75pt ;
\stopMPcode
\stopplacefigure
\stoptext
% end grid-axis-function.tex
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Floris van Manen
while trying to reproduce the example, i ran into some confusion myself...

I downloaded the fonts and installed them, then ran the script:
mtxrun --generate
mtxrun --script font --reload
context --make

verifying the existence of the font within the context region:
mtxrun --script fonts --list --all --name jost | cut -d" " -f1
shows the font appeared to be installed:
jostblack
jostblackitalic
jostbold
jostbolditalic
jostbook
jostbookitalic
josthairline
josthairlineitalic
jostheavy
jostitalic
jostlight
jostlightitalic
jostmedium
jostmediumitalic
jostnormal
jostregular
jostsemi
jostsemiitalic
jostthin
jostthinitalic

Now when i compile the example, lmtx will shows an issue with the font:

preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
fonts   > names > font database has mismatching configuration
and file hashes
fonts   > names > warnings are disabled (tracker 'fonts.warnings')
fonts   > names > identifying tree font files with suffix 'otf'
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-project' for otf files
fonts   > names > 0 otf files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-fonts' for otf files
fonts   > names > 0 otf files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-local' for otf files
fonts   > names > 0 otf files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-modules' for otf files
fonts   > names > 0 otf files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-context' for otf files
fonts   > names > 1 otf files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-linux-64' for otf files
fonts   > names > 0 otf files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf' for otf files
fonts   > names > 222 otf files checked,  okay
fonts   > names > identifying tree font files with suffix 'OTF'
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-project' for OTF files
fonts   > names > 0 OTF files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-fonts' for OTF files
fonts   > names > 0 OTF files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-local' for OTF files
fonts   > names > 0 OTF files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-modules' for OTF files
fonts   > names > 0 OTF files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-context' for OTF files
fonts   > names > 1 OTF files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf-linux-64' for OTF files
fonts   > names > 0 OTF files checked,  okay
fonts   > names > scanning path
'/home/vm/data/context/tex/texmf' for OTF files
fonts   > names > 222 OTF files checked,  okay
fonts   > names > 446 tree files identified, 0 skipped, 0
duplicates, 446 hash entries added, runtime 0.045 seconds




and it will fallback to the default lmroman12-regular

I noticed that if i omit the context --make
and only run
mtxrun --generate
mtxrun --script font --reload

then compile the example, lmtx will show a different set of issues.
Most likely related...



open source > level 1, order 1, name 'cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2019.12.17 16:30 MKIV beta  fmt:
2019.12.22  int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/vm/data/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name
'/home/vm/data/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'j2', input './j2', result 'j2'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name './j2.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
fonts   > defining > font with asked name 'jost-100-hairline' is
not found using lookup 'file'
fonts   > defining > unknown font 'jost-100-hairline', loading
aborted
fonts   > defining > unable to define 'jost-100-hairline' as
'JHair--0'
fonts   > defining > font with asked name 'jost-200-thin' is not
found using lookup 'file'
fonts   > defining > unknown font 'jost-200-thin', loading aborted
fonts   > defining > unable to define 'jost-200-thin' as 'JThin--0'
fonts   > defining > font with asked 

Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Hans Hagen

On 12/22/2019 5:36 AM, Rik Kabel wrote:

List,

I have a strange case of a font feature disappearing when many fonts are 
used.


In creating a sampler for the Jost* font (free at 
https://indestructibletype.com/Jost.html) and using its feature ss01 to 
get single-storey lower-case a, the font reverts to the default 
two-storey a when many weights are shown. When I create the fonts with 
\definefontfamily, the upright weights are fine and the italic weights 
revert. When I create the fonts with \definefont, the reverse is the case.


Below is the demonstration for the \definefont variation and a snip of 
the failing result.


\definebodyfontenvironment[13pt]
  [interlinespace=15pt]

\setuplayout [backspace=0pt,
   topspace=30pt,
   width=middle,
   height=middle,
   location=middle,
   header=0pt,
   footer=0pt]

\setuppagenumbering  [location=]

\definefontfeature   [default]
  [default]
  [ss01=yes]

\definefont  [JHair] [jost-100-hairline]
\definefont  [JThin] [jost-200-thin]
\definefont  [JLigh] [jost-300-light]
\definefont  [JBook] [jost-400-book]
\definefont  [JMedi] [jost-500-medium]
\definefont  [JSemi] [jost-600-semi]
\definefont  [JBold] [jost-700-bold]
\definefont  [JHeav] [jost-800-heavy]
\definefont  [JBlac] [jost-900-black]

\definefont  [JHairI][jost-100-hairlineitalic]
\definefont  [JThinI][jost-200-thinitalic]
\definefont  [JLighI][jost-300-lightitalic]
\definefont  [JBookI][jost-400-bookitalic]
\definefont  [JMediI][jost-500-mediumitalic]
\definefont  [JSemiI][jost-600-semiitalic]
\definefont  [JBoldI][jost-700-bolditalic]
\definefont  [JHeavI][jost-800-heavyitalic]
\definefont  [JBlacI][jost-900-blackitalic]

\startbuffer [Sampler]
  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  a b c d e f g h i j k l m n o p q r s t u v w x y z à ë í ô ç
  1 2 3 4 5 6 7 8 9 0 ` \texttilde\ - = !  @ \# \$ \letterpercent\ ^ \&
  * ( ) _ + [ ] \textbackslash\ ; ' , . / \{ \} \| : " < > ?
  \fontname\font
\blank   [line]
\stopbuffer

\setupalign  [middle]

  
\starttext

\obeylines

\JHair \getbuffer[Sampler]
\JThin \getbuffer[Sampler]
\JLigh \getbuffer[Sampler]
\JBook \getbuffer[Sampler]
\JMedi \getbuffer[Sampler]
\JSemi \getbuffer[Sampler]
\JBold \getbuffer[Sampler]
\JHeav \getbuffer[Sampler]
\JBlac \getbuffer[Sampler]
\page
\JHairI\getbuffer[Sampler]
\JThinI\getbuffer[Sampler]
\JLighI\getbuffer[Sampler]
\JBookI\getbuffer[Sampler]
\JMediI\getbuffer[Sampler]
\JSemiI\getbuffer[Sampler]
\JBoldI\getbuffer[Sampler]
\JHeavI\getbuffer[Sampler]
\JBlacI\getbuffer[Sampler]

\stoptext

Below is the demonstration for the \definefontfamily variation and a 
snip of the expected result, although the italics fail.


\definebodyfontenvironment[13pt]
  [interlinespace=15pt]

\setuplayout [backspace=0pt,
   topspace=15pt,
   width=middle,
   height=middle,
   location=middle,
   header=0pt,
   footer=0pt]

\setuppagenumbering  [location=]

\definefontfeature   [default]
  [default]
  [ss01=yes]
\definefontfamily[up-one]
  [sansserif]
  [Jost]
  [tf={style:hairline,features},
   bf={style:thin,features},
   bi={style:light,features},
   it={style:book,features}]
\definefontfamily[up-two]
  [sansserif]
  [Jost]
  [tf={style:medium,features},
   bf={style:semi,features},
   bi={style:bold,features},
   it={style:heavy,features}]
\definefontfamily[up-three]
  [sansserif]
  [Jost]
  [tf={style:black,features},
   bf={style:black,features},
   bi={style:black,features},
   it={style:black,features}]
\definefontfamily[it-one]
  [sansserif]
  [Jost]
  [tf={style:hairlineitalic,features},
  

Re: [NTG-context] Tent style cards

2019-12-22 Thread Hans Hagen

On 12/22/2019 11:23 AM, Wolfgang Schuster wrote:

Pavneet Arora schrieb am 21.12.2019 um 23:08:

Hello.

I am trying to do up some tent style table place holder cards for my
daughter's wedding, and have been wracking my brain for a solution for a
couple of days now.

Having tried many alternatives, this is the closest I have come up with.
But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring
works, but I only need tent style (1*2 head-to-head) so that I can trim
to size.

Any template that could be suggested would be most helpful as the
wedding is on Mon (yikes!).


Simple solution:

\starttexdefinition TableCard #1

     \setupTABLE [start] 
[frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]

     \setupTABLE [row]   [1] [orientation=180]
    %\setupTABLE [start] [leftframe=on,rightframe=on]
    %\setupTABLE [row]   [1] [topframe=on]
    %\setupTABLE [row]   [2] [bottomframe=on]

     \bTABLE
     \bTR
     \bTD
     #1
     \eTD
     \eTR
     \bTR
     \bTD
     #1
     \eTD
     \eTR
     \eTABLE

\stoptexdefinition


\starttext
\TableCard{Insert Name}
\stoptext


Now that's one for Pavneets upcoming context cookbook project, after the 
wedding is done,


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tent style cards

2019-12-22 Thread Wolfgang Schuster

Pavneet Arora schrieb am 21.12.2019 um 23:08:

Hello.

I am trying to do up some tent style table place holder cards for my
daughter's wedding, and have been wracking my brain for a solution for a
couple of days now.

Having tried many alternatives, this is the closest I have come up with.
But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring
works, but I only need tent style (1*2 head-to-head) so that I can trim
to size.

Any template that could be suggested would be most helpful as the
wedding is on Mon (yikes!).


Simple solution:

\starttexdefinition TableCard #1

    \setupTABLE [start] 
[frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]

    \setupTABLE [row]   [1] [orientation=180]
   %\setupTABLE [start] [leftframe=on,rightframe=on]
   %\setupTABLE [row]   [1] [topframe=on]
   %\setupTABLE [row]   [2] [bottomframe=on]

    \bTABLE
    \bTR
    \bTD
    #1
    \eTD
    \eTR
    \bTR
    \bTD
    #1
    \eTD
    \eTR
    \eTABLE

\stoptexdefinition


\starttext
\TableCard{Insert Name}
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tent style cards

2019-12-22 Thread Wolfgang Schuster

Pavneet Arora schrieb am 21.12.2019 um 23:08:

Hello.

I am trying to do up some tent style table place holder cards for my
daughter's wedding, and have been wracking my brain for a solution for a
couple of days now.

Having tried many alternatives, this is the closest I have come up with.
But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring
works, but I only need tent style (1*2 head-to-head) so that I can trim
to size.

Any template that could be suggested would be most helpful as the
wedding is on Mon (yikes!).


There is a arrangement style but it's meant for doublesided cards.

\setuppapersize[A6,landscape][A5]

\setuparranging[1*2-Conference]

\setuppagenumbering[location=]

\starttext
\dorecurse{2}{\centerbox{\tfd Insert Name}}
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___