ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Problems with old style figures and particular font
@ 2016-08-11 19:42 Martin Oppegaard
  2016-08-12 10:08 ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Martin Oppegaard @ 2016-08-11 19:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Wolfgang, thank you for the quick reply.

On Thu, Aug 11 2016, Wolfgang Schuster wrote:
>     
>     
>     Martin Oppegaard
>     10. August 2016 um 22:27
>     
>     Dear list,
>     
>     I'm having problems getting old style figures and ligatures with
>     the fbb
>     font. I'm using Tex live 2014 on OpenBSD 5.9 and context version
>     2014.05.21 22:04. otfinfo -f fbb-Regular.otf reports that it has
>     onum
>     and liga, and it works fine with lualatex. I have tried with a
>     typescript and simplefont (the fbb font is being used in all three
>     cases); see attached examples. Do you have any suggestions?
>     
>     % type-fbb.mkiv
>     \starttypescript [serif] [fbb] [name]
>     \definefontsynonym [Serif] [file:fbb-Regular.otf]
>     [features=default]
>     \definefontsynonym [SerifItalic] [file:fbb-Italic.otf]
>     [features=default]
>     \stoptypescript
>     
>     \starttypescript [fbb]
>     \definetypeface [fbb] [rm] [serif] [fbb] [default]
>     \stoptypescript
>     
>     
>     % contex-test1.tex
>     \usetypescriptfile[type-fbb]
>     \usetypescript[fbb]
>     \setupbodyfont[fbb,11pt]
>     \definefontfeature[default][default][liga=yes,onum=yes]
>     
> Move the \definefontfeature setting before \setupbodyfont because
> changes to the feature set after the font is loaded are ignored.
>
> \definefontfeature[default][default][liga=yes,onum=yes]
> \setupbodyfont[fbb,11pt]
>
> Wolfgang
>

Moving \definefontfeature before \setupbodyfont doesn't change anything
for me.  Here is the output of running context:


open source     > 1 > 1 > /usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.05.21 22:04 MKIV beta  fmt: 2016.2.22  int: english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 > /usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv
close source    > 2 > 2 > /usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv
system          > files > jobname 'context-test1', input './context-test1', result 'context-test1'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > /home/martin/documents/fbb-test/context-test1.tex
open source     > 3 > 4 > type-fbb.mkiv
close source    > 3 > 4 > type-fbb.mkiv
fonts           > preloading modern-designsize (math)
fonts           > typescripts > unknown library 'modern-designsize' or 'modern'
fonts           > 'fallback modern-designsize mm 11pt' is loaded
fonts           > preloading modern-designsize (mono)
fonts           > 'fallback modern-designsize tt 11pt' is loaded
backend         > xmp > using file '/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
close source    > 2 > 4 > /home/martin/documents/fbb-test/context-test1.tex
close source    > 1 > 4 > /usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv

system          > structure > start used structure

used structure  > text: context-test1

system          > structure > stop used structure


system          > files > start used files

used file       >    1: filename=cont-yes.mkiv filetype=tex foundname=/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv usedmethod=database
used file       >    2: filename=cont-new.mkiv filetype=tex foundname=/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv usedmethod=database
used file       >    3: filename=lang-us.lua filetype=lua foundname=/usr/local/share/texmf-dist/tex/context/patterns/lang-us.lua usedmethod=database
used file       >    4: filename=/home/martin/documents/fbb-test/context-test1.tex foundname=/home/martin/documents/fbb-test/context-test1.tex usedmethod=direct
used file       >    5: filename=type-fbb.mkiv foundname=type-fbb.mkiv usedmethod=direct
used file       >    6: filename=fbb-Regular.otf filetype=otf format=otf foundname=/usr/local/share/texmf-dist/fonts/opentype/public/fbb/fbb-Regular.otf usedmethod=database
used file       >    7: filename=lpdf-pdx.xml filetype=tex foundname=/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml usedmethod=database

system          > files > stop used files


system          > options > start commandline options

used option     > currentrun="3"
used option     > fulljobname="./context-test1.tex"
used option     > input="./context-test1.tex"
used option     > kindofrun="2"
used option     > maxnofruns="8"
used option     > no-parse-first-line="true"

system          > options > stop commandline options

system          > options > start commandline files

used file       >    1: ./context-test1.tex

system          > options > stop commandline files


mkiv lua stats  > used config file: selfautodir:/share/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable: '/usr/local/share/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d' | readable+writable: '/home/martin/.texlive2014/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d'
mkiv lua stats  > resource resolver: loadtime 0.092 seconds, 1 scans with scantime 0.000 seconds, 0 shared scans, 7 found files, scanned paths: /home/martin/texmf
mkiv lua stats  > stored bytecode data: 350 modules (0.280 sec), 69 tables (0.000 sec), 419 chunks (0.280 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 443 lists of 442
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances (re)created, 39 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 144 direct, 195 indirect, 339 total
mkiv lua stats  > randomizer: resumed with value 0.38142795133471
mkiv lua stats  > result saved in file: context-test1.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 1 files: fbb-regular.otf
mkiv lua stats  > fonts load time: 0.032 seconds for 4 fonts, 3 shared in backend, 1 common vectors, 2 common hashes
mkiv lua stats  > used platform: linux, type: unix, binary subtree: local
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 2014-openbsd_ports) (rev 4971)
mkiv lua stats  > control sequences: 38119 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 45 MB (ctx: 45 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.421 seconds, 1 processed pages, 1 shipped pages, 2.375 pages/second

Best regards,
Martin Oppegaard
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Problems with old style figures and particular font
  2016-08-11 19:42 Problems with old style figures and particular font Martin Oppegaard
@ 2016-08-12 10:08 ` Wolfgang Schuster
  2016-08-12 13:50   ` Interlining in a TwoColumns set Jean-Pierre Delange
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2016-08-12 10:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1790 bytes --]

> Martin Oppegaard <mailto:martin.oppegaard@gmail.com>
> 11. August 2016 um 21:42
> Hi Wolfgang, thank you for the quick reply.
>
> Moving \definefontfeature before \setupbodyfont doesn't change anything
> for me. Here is the output of running context:
You need also "script=latn" when you enable oldstyle numerals.


You can use the mtxrun script to list the available features of a font
where you also see the necessary script:

$ mtxrun --script font --list --info fbbregular

resolvers       | trees | analyzing 'home:texmf'
mtx-fonts       |
mtx-fonts       | mapping   : fbbregular
mtx-fonts       | fontname  : fbbregular
mtx-fonts       | fullname  : fbbregular
mtx-fonts       | filename  : fbb-Regular.otf
mtx-fonts       | family    : fbb
mtx-fonts       | weight    : normal
mtx-fonts       | style     : normal
mtx-fonts       | width     : normal
mtx-fonts       | variant   : normal
mtx-fonts       | fweight   : conflict: regular
mtx-fonts       |
...
mtx-fonts       |
mtx-fonts       | gsub features:
mtx-fonts       |
mtx-fonts       | feature  script   languages
mtx-fonts       |
...
mtx-fonts       | onum     grek     dflt
mtx-fonts       |          latn     dflt



%%%% begin example
\starttypescript [serif] [fbb]
   \setups[font:fallback:serif]
   \definefontsynonym [Serif]           [file:fbbregular]
   \definefontsynonym [SerifItalic]     [file:fbbitalic]
   \definefontsynonym [SerifBold]       [file:fbbbold]
   \definefontsynonym [SerifBoldItalic] [file:fbbbolditalic]
\stoptypescript

\definefontfeature[default][default][script=latn,onum=yes]

\definetypeface [fbb] [rm] [serif] [fbb]    [default] [features=default]
\definetypeface [fbb] [mm] [math]  [modern] [default]

\setupbodyfont[fbb]

\starttext
ABC abc 1234
\stoptext
%%%% end example

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3441 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-12 10:08 ` Wolfgang Schuster
@ 2016-08-12 13:50   ` Jean-Pierre Delange
  2016-08-12 15:21     ` Pablo Rodriguez
  0 siblings, 1 reply; 15+ messages in thread
From: Jean-Pierre Delange @ 2016-08-12 13:50 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 3249 bytes --]

Dear List,

In order to help somebody who wants to improve a kind presentation of 
his own, I have set the sample below.
I am confronting to 2 issues :

1. In the second column it would be fine if one could play with the 
interlining. But where to put this command : 
\setupinterlinespace[line=2.8ex]}] which allow to define interlines 
inside the 2nd column ?

2. The Logo.svg picture (in /Images/Logo.svg within context repertory) 
doesn't print : 'state: unknown'; is it an issue caused by a layer 
definition ?

Thanks for your advices.
JP

% Select language

\mainlanguage[fr]

\language[fr]


% Setup PDF metadata

\setupinteraction

[state=start,

color=colour_link,

click=yes,

contrastcolor=colour_link,

focus=standard, % Clicking an inter-document hyperlink by default 
switches to "fit page" mode. Override.

openaction={FitWidth,ToggleViewer},

title={Anciens et Modernes},

style=normal,

subtitle={Anciens et Modernes},

author=Adeimantos <adeimantos@free.fr>,

keyword={philosophy, history, political philosophy}]


% Turn off page numbering

\setuppagenumbering[location=]


% Normal A4 size paper

\setuppapersize[A4][A4]


% Setup margins

\setuplayout[

backspace=10mm,

width=190mm,

topspace=5mm,

header=0mm,

footer=5mm,

footerdistance=0mm,

bottomdistance=10mm,

height=280mm]

%\showframe


% For coloured output

\setupcolors[state=start]


% Font setup


% Font to use

\definefontfamily [main_font] [rm] [titillium] [features={default,quality}]

\definefontfamily [main_font] [mm] [TeX Gyre Pagella]

\setupbodyfont[main_font]


% URL macros and setups


% Usage: \href{http://www.someurl.com}{Text}

\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}

\def\ahref#1{\href{#1}{<#1>}}

\def\fullahref#1{\href{#1}{#1}}

\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}

\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}


% Style

\setupurl

[color=none,

style=normal]


% Setup two columns

\defineparagraphs[TwoColumns][n=2, align={hz,hanging}]

\setupparagraphs[TwoColumns][1][width=200pt]


% Setup stretching tolerance...

\setuptolerance[verytolerant,stretch]


\setupcolors[state=start]


% The elements of the letterhead are defined as layers. This first layer

% contains the logo; you'll have to supply an image file yourself.

\definelayer[logo_layer]

\setlayer[logo_layer][preset=lefttop,y=.01\paperheight,x=.82\paperwidth]

{\externalfigure[Images/Logo.svg][][height=0.2\textwidth]}


% Activate all layers for this page...

\setupbackgrounds[page][background={logo_layer}]


% Start document body...

\starttext


% Header...

{\switchtobodyfont[40pt] Anciens et Modernes \crlf}

\blackrule[height=0.6mm,width=0.83\textwidth]


% Dateline...

{\bf Présentation}\crlf

\currentdate[dd,{~},m,{~},year]


% Headline...

\blank

\framed[align=middle,width=200mm,height=13mm,frame=off]

{

\bf \switchtobodyfont[15pt]

{\bf Philosophie politique.}

}


\startTwoColumns

\startlines

{\bf Contact Information}

Adeimantos

Le Manoir

F - 18190 Chavannes

adeimantos@free.fr


{\bf Édition}

Livres, articles


{\bf Dévelopement}

Prototype


{\bf Année de création}

2012


{\bf Financements privés}

\$0


\stoplines


\TwoColumns

\input tufte


\stopTwoColumns


\stoptext


[-- Attachment #1.2: Type: text/html, Size: 21652 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-12 13:50   ` Interlining in a TwoColumns set Jean-Pierre Delange
@ 2016-08-12 15:21     ` Pablo Rodriguez
  2016-08-13  6:52       ` Wolfgang Schuster
  2016-08-13  9:32       ` Jean-Pierre Delange
  0 siblings, 2 replies; 15+ messages in thread
From: Pablo Rodriguez @ 2016-08-12 15:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/12/2016 03:50 PM, Jean-Pierre Delange wrote:
> Dear List,
> 
> In order to help somebody who wants to improve a kind presentation of
> his own, I have set the sample below.

Dear Jean-Pierre,

we are happy to help, but samples should be minimal.

Otherwise, the sample should be fixed first (to have something to play
with).

Sorrym I tried to compile your sample, but even the simple clipboard
copy and paste adds extra blank lines to the code.

> I am confronting to 2 issues :
> 
> 1. In the second column it would be fine if one could play with the
> interlining. But where to put this command :
> \setupinterlinespace[line=2.8ex]}] which allow to define interlines
> inside the 2nd column ?

Do you want a different interline space in the second column?

> 2. The Logo.svg picture (in /Images/Logo.svg within context repertory)
> doesn't print : 'state: unknown'; is it an issue caused by a layer
> definition ?

You have to set it (see sample below).

> % Select language
> 
> \mainlanguage[fr]
> \language[fr]

\mainlanguage also selects the language for the document. The second
command isn’t required.

> % Normal A4 size paper
> 
> \setuppapersize[A4][A4]

Well, this is the default paper size in ConTeXt. No need to select it.

> \setupcolors[state=start]

I’d say this is not required (at least, I had to stop colors to get rid
of them in one document).

> \definelayer[logo_layer]

[state=start] is to be added here (see
http://wiki.contextgarden.net/Layers#State). Right after your closing
bracket.

And here you have a shorter sample:

    \mainlanguage[fr]

    \defineparagraphs[TwoColumns][n=2, align={hz,hanging}]
    \setupparagraphs[TwoColumns][1][width=200pt]
    \setupparagraphs[TwoColumns][2]
        [style={\setupinterlinespace[line=5ex]}]

    \setupexternalfigure[location=default]

    \definelayer[logo_layer][state=start]

    \setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
        x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}

    \setupbackgrounds[page][background={logo_layer}]

    \starttext

    \dorecurse{5}{\startTwoColumns

    \input knuth

    \TwoColumns

    \input tufte
    \stopTwoColumns}
    \stoptext

Interline spacing is set in an unorthodox way (to put it fine), but
there is no "setups" key for \setupparagraphs (or it doesn’t work).

Let us know whether you find more issues.

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-12 15:21     ` Pablo Rodriguez
@ 2016-08-13  6:52       ` Wolfgang Schuster
  2016-08-13 10:45         ` Jean-Pierre Delange
  2016-08-13  9:32       ` Jean-Pierre Delange
  1 sibling, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2016-08-13  6:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 592 bytes --]

> Pablo Rodriguez <mailto:oinos@gmx.es>
> 12. August 2016 um 17:21
> Interline spacing is set in an unorthodox way (to put it fine), but
> there is no "setups" key for \setupparagraphs (or it doesn’t work).
>
> Let us know whether you find more issues.
You can apply setups with the inner key:

\defineparagraphs[TwoColumns][n=2,align=verytolerant]

\startsetups[TwoColumns]
   \setupinterlinespace[line=5ex]
\stopsetups

\setupparagraphs[TwoColumns:2][inner=\directsetup{TwoColumns}]

\starttext

\startTwoColumns
\input knuth
\TwoColumns
\input tufte
\stopTwoColumns

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1637 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-12 15:21     ` Pablo Rodriguez
  2016-08-13  6:52       ` Wolfgang Schuster
@ 2016-08-13  9:32       ` Jean-Pierre Delange
  1 sibling, 0 replies; 15+ messages in thread
From: Jean-Pierre Delange @ 2016-08-13  9:32 UTC (permalink / raw)
  To: ntg-context

Dear Pablo,

In order to understand which issues I was confronting to, I gave the 
whole stuff. I apologize if I have trespassed some rules I ought to know.

The only issue that matters is the place of the 
\setupinterlinespace[line=somenumber]command to manage the second 
column. Anyway, I'll try your sample.

Thank you very much for your help.

JP


Le 12/08/2016 à 17:21, Pablo Rodriguez a écrit :
> On 08/12/2016 03:50 PM, Jean-Pierre Delange wrote:
>> Dear List,
>>
>> In order to help somebody who wants to improve a kind presentation of
>> his own, I have set the sample below.
> Dear Jean-Pierre,
>
> we are happy to help, but samples should be minimal.
>
> Otherwise, the sample should be fixed first (to have something to play
> with).
>
> Sorrym I tried to compile your sample, but even the simple clipboard
> copy and paste adds extra blank lines to the code.
>
>> I am confronting to 2 issues :
>>
>> 1. In the second column it would be fine if one could play with the
>> interlining. But where to put this command :
>> \setupinterlinespace[line=2.8ex]}] which allow to define interlines
>> inside the 2nd column ?
> Do you want a different interline space in the second column?
>
>> 2. The Logo.svg picture (in /Images/Logo.svg within context repertory)
>> doesn't print : 'state: unknown'; is it an issue caused by a layer
>> definition ?
> You have to set it (see sample below).
>
>> % Select language
>>
>> \mainlanguage[fr]
>> \language[fr]
> \mainlanguage also selects the language for the document. The second
> command isn’t required.
>
>> % Normal A4 size paper
>>
>> \setuppapersize[A4][A4]
> Well, this is the default paper size in ConTeXt. No need to select it.
>
>> \setupcolors[state=start]
> I’d say this is not required (at least, I had to stop colors to get rid
> of them in one document).
>
>> \definelayer[logo_layer]
> [state=start] is to be added here (see
> http://wiki.contextgarden.net/Layers#State). Right after your closing
> bracket.
>
> And here you have a shorter sample:
>
>      \mainlanguage[fr]
>
>      \defineparagraphs[TwoColumns][n=2, align={hz,hanging}]
>      \setupparagraphs[TwoColumns][1][width=200pt]
>      \setupparagraphs[TwoColumns][2]
>          [style={\setupinterlinespace[line=5ex]}]
>
>      \setupexternalfigure[location=default]
>
>      \definelayer[logo_layer][state=start]
>
>      \setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
>          x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}
>
>      \setupbackgrounds[page][background={logo_layer}]
>
>      \starttext
>
>      \dorecurse{5}{\startTwoColumns
>
>      \input knuth
>
>      \TwoColumns
>
>      \input tufte
>      \stopTwoColumns}
>      \stoptext
>
> Interline spacing is set in an unorthodox way (to put it fine), but
> there is no "setups" key for \setupparagraphs (or it doesn’t work).
>
> Let us know whether you find more issues.
>
> I hope it helps,
>
>
> Pablo

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-13  6:52       ` Wolfgang Schuster
@ 2016-08-13 10:45         ` Jean-Pierre Delange
  2016-08-14 11:47           ` Pablo Rodriguez
  0 siblings, 1 reply; 15+ messages in thread
From: Jean-Pierre Delange @ 2016-08-13 10:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1311 bytes --]

Thank you very much Wolfgang ! With Pablo help, I can manage this flyer. 
But how to insert a logo on the top right ?


Le 13/08/2016 à 08:52, Wolfgang Schuster a écrit :
>> Pablo Rodriguez <mailto:oinos@gmx.es>
>> 12. August 2016 um 17:21
>> Interline spacing is set in an unorthodox way (to put it fine), but
>> there is no "setups" key for \setupparagraphs (or it doesn’t work).
>>
>> Let us know whether you find more issues.
> You can apply setups with the inner key:
>
> \defineparagraphs[TwoColumns][n=2,align=verytolerant]
>
> \startsetups[TwoColumns]
>   \setupinterlinespace[line=5ex]
> \stopsetups
>
> \setupparagraphs[TwoColumns:2][inner=\directsetup{TwoColumns}]
>
> \starttext
>
> \startTwoColumns
> \input knuth
> \TwoColumns
> \input tufte
> \stopTwoColumns
>
> \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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3460 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-13 10:45         ` Jean-Pierre Delange
@ 2016-08-14 11:47           ` Pablo Rodriguez
  2016-08-14 14:06             ` Jean-Pierre Delange
  2016-08-14 14:13             ` Jean-Pierre Delange
  0 siblings, 2 replies; 15+ messages in thread
From: Pablo Rodriguez @ 2016-08-14 11:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/13/2016 12:45 PM, Jean-Pierre Delange wrote:
> Thank you very much Wolfgang ! With Pablo help, I can manage this flyer.
> But how to insert a logo on the top right ?

Jean-Pierre,

I included it in the sample. Here you have it again:

    \setupexternalfigure[location=default]

    \definelayer[logo_layer][state=start]

    \setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
        x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}

    \setupbackgrounds[page][background={logo_layer}]

    \starttext

    \dorecurse{5}{\input knuth\par}
    \stoptext

Or is there any issue with the sample? At least, the spider should be
placed in the top right corner of the first page. To have it in all
pages, replace "state=start" with "state=repeat".

If this isn’t what you need, please let us know how the logo should be
placed.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-14 11:47           ` Pablo Rodriguez
@ 2016-08-14 14:06             ` Jean-Pierre Delange
  2016-08-14 15:42               ` Pablo Rodriguez
  2016-08-14 15:50               ` Wolfgang Schuster
  2016-08-14 14:13             ` Jean-Pierre Delange
  1 sibling, 2 replies; 15+ messages in thread
From: Jean-Pierre Delange @ 2016-08-14 14:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Pablo,

Many thanks to be patient. I apologize to be a little bit slow minded : 
I presume that the

  \setupexternalfigure[location=default] command

would say that the figure is in the same directory than ConTeXt documents (i.e. 'default'). I have requested an external figure in *.svg format (Logo.svg), but the print on the top right shows only these informations :
name : Logo.svg
file : Logo.svg
state : unknown

By the way, even if my images are loaded in a ConTeXt subdirectory (as context\ConTeXt-Documents\Images), in place of default directory, the parsing doesn't load the image.


Le 14/08/2016 à 13:47, Pablo Rodriguez a écrit :
> On 08/13/2016 12:45 PM, Jean-Pierre Delange wrote:
>> Thank you very much Wolfgang ! With Pablo help, I can manage this flyer.
>> But how to insert a logo on the top right ?
> Jean-Pierre,
>
> I included it in the sample. Here you have it again:
>
>      \setupexternalfigure[location=default]
>
>      \definelayer[logo_layer][state=start]
>
>      \setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
>          x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}
>
>      \setupbackgrounds[page][background={logo_layer}]
>
>      \starttext
>
>      \dorecurse{5}{\input knuth\par}
>      \stoptext
>
> Or is there any issue with the sample? At least, the spider should be
> placed in the top right corner of the first page. To have it in all
> pages, replace "state=start" with "state=repeat".
>
> If this isn’t what you need, please let us know how the logo should be
> placed.
>
>
> Pablo

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-14 11:47           ` Pablo Rodriguez
  2016-08-14 14:06             ` Jean-Pierre Delange
@ 2016-08-14 14:13             ` Jean-Pierre Delange
  2016-08-14 15:55               ` Wolfgang Schuster
  1 sibling, 1 reply; 15+ messages in thread
From: Jean-Pierre Delange @ 2016-08-14 14:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

About the image on the top right of the TwoColumns doc : it works with 
mill.png image (but not with spider). I guess the 'Logo.svg' is too 
heavy (or something like that).


Le 14/08/2016 à 13:47, Pablo Rodriguez a écrit :
> On 08/13/2016 12:45 PM, Jean-Pierre Delange wrote:
>> Thank you very much Wolfgang ! With Pablo help, I can manage this flyer.
>> But how to insert a logo on the top right ?
> Jean-Pierre,
>
> I included it in the sample. Here you have it again:
>
>      \setupexternalfigure[location=default]
>
>      \definelayer[logo_layer][state=start]
>
>      \setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
>          x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}
>
>      \setupbackgrounds[page][background={logo_layer}]
>
>      \starttext
>
>      \dorecurse{5}{\input knuth\par}
>      \stoptext
>
> Or is there any issue with the sample? At least, the spider should be
> placed in the top right corner of the first page. To have it in all
> pages, replace "state=start" with "state=repeat".
>
> If this isn’t what you need, please let us know how the logo should be
> placed.
>
>
> Pablo

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-14 14:06             ` Jean-Pierre Delange
@ 2016-08-14 15:42               ` Pablo Rodriguez
  2016-08-14 15:50               ` Wolfgang Schuster
  1 sibling, 0 replies; 15+ messages in thread
From: Pablo Rodriguez @ 2016-08-14 15:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/14/2016 04:06 PM, Jean-Pierre Delange wrote:
> Hi Pablo,
> 
> Many thanks to be patient. I apologize to be a little bit slow minded : 
> I presume that the
> 
>   \setupexternalfigure[location=default] command
> 
> would say that the figure is in the same directory than ConTeXt
> documents (i.e. 'default'). I have requested an external figure in *.svg
> format (Logo.svg), but the print on the top right shows only these
> informations :
> name : Logo.svg
> file : Logo.svg
> state : unknown
> 
> By the way, even if my images are loaded in a ConTeXt subdirectory
> (as context\ConTeXt-Documents\Images), in place of default directory,
> the parsing doesn't load the image.

Hi Jean-Pierre,

the default directory is tex/texmf-context/tex/context/sample/common
from ConTeXt Standalone.

If you have the file in the same directory than your text source file,
you don’t need any setup for the external figure.

To solve the issue (after fixing it, you might investigate it further),
please, copy the file Logo.svg to the same directory where you have your
ConTeXt source file.

Compile the document and it should work (provided that you have Inkscape
installed on your system).

Please, let us know whether this basic approach works.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-14 14:06             ` Jean-Pierre Delange
  2016-08-14 15:42               ` Pablo Rodriguez
@ 2016-08-14 15:50               ` Wolfgang Schuster
  1 sibling, 0 replies; 15+ messages in thread
From: Wolfgang Schuster @ 2016-08-14 15:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1065 bytes --]

> Jean-Pierre Delange <mailto:adeimantos@free.fr>
> 14. August 2016 um 16:06
> Hi Pablo,
>
> Many thanks to be patient. I apologize to be a little bit slow minded 
> : I presume that the
>
>  \setupexternalfigure[location=default] command
>
> would say that the figure is in the same directory than ConTeXt 
> documents (i.e. 'default'). I have requested an external figure in 
> *.svg format (Logo.svg), but the print on the top right shows only 
> these informations :
> name : Logo.svg
> file : Logo.svg
> state : unknown
>
> By the way, even if my images are loaded in a ConTeXt subdirectory (as 
> context\ConTeXt-Documents\Images), in place of default directory, the 
> parsing doesn't load the image.
You can set the following keywords for the location key:

   - default: Load images from your TeX installation (needed to load 
ConTeXt’s example graphics)
   - local: Load images in the same folder as your TeX file and 2 folder 
upwards in the path
   - global: Load images in the path provided with the directory key for 
\setupexternalfigure

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2068 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-14 14:13             ` Jean-Pierre Delange
@ 2016-08-14 15:55               ` Wolfgang Schuster
  2016-08-15  8:39                 ` Jean-Pierre Delange
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2016-08-14 15:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 604 bytes --]

> Jean-Pierre Delange <mailto:adeimantos@free.fr>
> 14. August 2016 um 16:13
> About the image on the top right of the TwoColumns doc : it works with 
> mill.png image (but not with spider). I guess the 'Logo.svg' is too 
> heavy (or something like that).
LuaTeX can only use images in the formats PDF, PNG, JPG, JP2 or JBIG2. 
Graphics which are provided in another format have to be converted in 
one mentioned before, for some formats (e.g. SVG) ConTeXt is able to 
convert them on the fly but you need the required programs (e.g. 
Inkscape for the conversion of SVG to PDF) on your system.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1596 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-14 15:55               ` Wolfgang Schuster
@ 2016-08-15  8:39                 ` Jean-Pierre Delange
  2016-08-15 10:16                   ` Pablo Rodriguez
  0 siblings, 1 reply; 15+ messages in thread
From: Jean-Pierre Delange @ 2016-08-15  8:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1491 bytes --]

Hi Pablo and Wolfgang,

Many thanks ! The issue concerning a logo image in a TwoColumns document 
is resolved. It was only a matter of file format. I thought (I don't 
know why), that ConTeXt use SVG format. I've converted all my *.svg file 
in PNG and it works fine. Thank you very much for your help.

JP


Le 14/08/2016 à 17:55, Wolfgang Schuster a écrit :
>> Jean-Pierre Delange <mailto:adeimantos@free.fr>
>> 14. August 2016 um 16:13
>> About the image on the top right of the TwoColumns doc : it works 
>> with mill.png image (but not with spider). I guess the 'Logo.svg' is 
>> too heavy (or something like that).
> LuaTeX can only use images in the formats PDF, PNG, JPG, JP2 or JBIG2 
> . Graphics which are provided in another format have to be converted 
> in one mentioned before, for some formats (e.g. SVG) ConTeXt is able 
> to convert them on the fly but you need the required programs (e.g. 
> Inkscape for the conversion of SVG to PDF) on your system.
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3576 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Interlining in a TwoColumns set
  2016-08-15  8:39                 ` Jean-Pierre Delange
@ 2016-08-15 10:16                   ` Pablo Rodriguez
  0 siblings, 0 replies; 15+ messages in thread
From: Pablo Rodriguez @ 2016-08-15 10:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/15/2016 10:39 AM, Jean-Pierre Delange wrote:
> Hi Pablo and Wolfgang,
> 
> Many thanks ! The issue concerning a logo image in a TwoColumns document
> is resolved. It was only a matter of file format. I thought (I don't
> know why), that ConTeXt use SVG format. I've converted all my *.svg file
> in PNG and it works fine. Thank you very much for your help.

Hi Jean-Pierre,

well, I think “ConTeXt supports SVG as image format” is a true
statement. It doesn’t support it natively and it needs an external tool
to convert SVG files. But this is a different question.

BTW, if your SVG files contain vectors, I think it is better to convert
them to PDF. Otherwise, vectors will be lost in PNG files.

Just in case it might help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-08-15 10:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 19:42 Problems with old style figures and particular font Martin Oppegaard
2016-08-12 10:08 ` Wolfgang Schuster
2016-08-12 13:50   ` Interlining in a TwoColumns set Jean-Pierre Delange
2016-08-12 15:21     ` Pablo Rodriguez
2016-08-13  6:52       ` Wolfgang Schuster
2016-08-13 10:45         ` Jean-Pierre Delange
2016-08-14 11:47           ` Pablo Rodriguez
2016-08-14 14:06             ` Jean-Pierre Delange
2016-08-14 15:42               ` Pablo Rodriguez
2016-08-14 15:50               ` Wolfgang Schuster
2016-08-14 14:13             ` Jean-Pierre Delange
2016-08-14 15:55               ` Wolfgang Schuster
2016-08-15  8:39                 ` Jean-Pierre Delange
2016-08-15 10:16                   ` Pablo Rodriguez
2016-08-13  9:32       ` Jean-Pierre Delange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).