Re: [NTG-context] inmargin for only Roman-numbered items

2019-03-20 Thread Pablo Rodriguez
On 3/20/19 8:50 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 20.03.19 um 20:43:
>> [...]
>> Is there a way with a \setupitemize (or \setupitemgroup) to configure
>> only one kind of numbered (or unnumbered, for that matter) item groups?
>
> You have to create a new itemgroup environment/instance.
>
> \defineitemgroup [romanitemize]
> \setupitemgroup  [romanitemize] [R,inmargin]

Many thanks for your help, Wolfgang.

This is exactly what I needed.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] inmargin for only Roman-numbered items

2019-03-20 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 20.03.19 um 20:43:

On 3/20/19 8:09 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 20.03.19 um 20:03:

[...]
Is there a way to get only [option=inmargin] for the items that are
Roman-numbered?


\startitemize[I,inmargin]


Many thanks for your reply, Wolfgang.

I need a \setup... command, since I’m going to use it in an environment
file to typeset XML sources.

Is there a way with a \setupitemize (or \setupitemgroup) to configure
only one kind of numbered (or unnumbered, for that matter) item groups?


You have to create a new itemgroup environment/instance.

\defineitemgroup [romanitemize]
\setupitemgroup  [romanitemize] [R,inmargin]

\starttext

\startromanitemize
\dorecurse{5}{\item item}
\stopromanitemize

\startitemgroup [romanitemize]
\dorecurse{5}{\item item}
\stopitemgroup

\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] inmargin for only Roman-numbered items

2019-03-20 Thread Pablo Rodriguez
On 3/20/19 8:09 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 20.03.19 um 20:03:
>> [...]
>> Is there a way to get only [option=inmargin] for the items that are
>> Roman-numbered?
>
> \startitemize[I,inmargin]

Many thanks for your reply, Wolfgang.

I need a \setup... command, since I’m going to use it in an environment
file to typeset XML sources.

Is there a way with a \setupitemize (or \setupitemgroup) to configure
only one kind of numbered (or unnumbered, for that matter) item groups?

Many thanks for your 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] inmargin for only Roman-numbered items

2019-03-20 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 20.03.19 um 20:03:

Dear list,

I have the following sample:

 \showframe
 \setupitemize[each][option=inmargin]
 \starttext
 \startitemize[n]
 \dorecurse{5}{\item item}
 \stopitemize

 \startitemize
 \dorecurse{5}{\item item}
 \stopitemize

 \startitemize[I]
 \dorecurse{5}{\item item}
 \stopitemize
 \stoptext

Is there a way to get only [option=inmargin] for the items that are
Roman-numbered?


\startitemize[I,inmargin]

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] inmargin produces underfull hbox

2018-09-07 Thread Wolfgang Schuster
You can get of the warning by changing the alignment for the \margindata 
entries.


\setupmarginframed
  [inmargin]
  [align={flushright,broad}]

\starttext

Overfull\inmargin{abc}

\stoptext


You can produce the same message with the following example.

\starttext

\vbox
  {\hsize\leftmarginwidth
   \setupalign[flushright]
   \bf abc}

\stoptext


Wolfgang


Hans van der Meer schrieb am 07.09.18 um 13:02:

This minimal example:
\starttext
\currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
Testing \ConTeXt macro\ \tex{inmargin}
\blank
Some text to fill the body of the text.\par
\inmargin{\hbox{abc}}
Some text to fill the body of the text\par
\stoptext

produces an underfull hbox:

Underfull \hbox (badness 1210) in paragraph at lines 6--6
 [][][]

the same happens with the line: \inmargin{abc}
Underfull \hbox (badness 1210) in paragraph at lines 6--6
 []<9: lmroman12-bold @ 12.0pt> abc[]

addition of \hfil or \hss doesn’t help.

My conclusion: this is somewhere located in \inmargin. It would be 
nice if this can be resolved, because in procession some 500 
\inmargin’s the log is cluttered with all these messages.


dr. Hans van der Meer




___
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
___


___
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] \inmargin

2014-12-30 Thread Wolfgang Schuster

 Am 30.12.2014 um 22:15 schrieb Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu:
 
 Dear Syndicate,
 
 ConTeXt  ver: 2014.12.30 09:48 MKIV beta
 This is LuaTeX, Version beta-0.79.2 (TeX Live 2014/W32TeX)
 
 The following used to work:
 
 \starttext
 \define[5]\EDUITEM{\framed[frame=off,align=width,width=broad]
   {{\bf #1 }\inmargin{\it #2}\ (#3).\crlf
{\bf #4}, #5.\blank[small]}}
   
 \EDUITEM{Certificate of Proficiency}{2005}{\ConTeXt\ Studies}{\ConTeXt\ 
 Seminary}{\TeX{ville}, \TeX{land}}
 \stoptext
 
 Now I get nothing in the margin. Please advise!

Use \inmargin[scope=local]{…} when you use the command within a box structure.

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
___

Re: [NTG-context] \inmargin

2014-12-30 Thread Idris Samawi Hamid ادريس سماوي حامد
On Tue, 30 Dec 2014 14:50:25 -0700, Wolfgang Schuster  
schuster.wolfg...@gmail.com wrote:


Use \inmargin[scope=local]{…} when you use the command within a box  
structure.


Thanks, Wolfgang!

--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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
___

Re: [NTG-context] \inmargin

2012-03-04 Thread S Barmeier
I had a look at the garden reference of \setupinmargin. Trying to set
width=70mm, I get no change.

The default seems to be bold and aligned right. Changing the style
works, but trying to align inner/left also has no effect.

Any help?

Thank you,
Severin
___
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
___


Re: [NTG-context] \inmargin

2012-03-04 Thread Wolfgang Schuster

Am 04.03.2012 um 10:39 schrieb S Barmeier:

 I had a look at the garden reference of \setupinmargin. Trying to set
 width=70mm, I get no change.

\setuplayout
  [backspace=8cm,
   leftmargin=7cm,
   cutspace=2cm,
   width=middle]

\starttext

\inmargin{\input ward }
\input knuth

\stoptext

 The default seems to be bold and aligned right. Changing the style
 works, but trying to align inner/left also has no effect.

Style and color:

\setupmargindata[…][style=…,color=…]

Alignment:

\setupmarginframed[align=…]

Can be also done direct:

\inmargin[style=…,color=…][align=…]{…}

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
___


Re: [NTG-context] \inmargin

2012-03-03 Thread Wolfgang Schuster

Am 03.03.2012 um 16:59 schrieb S Barmeier:

 Could someone savant provide me with a rough overview of how to place
 text in a margin these days, or else point me to a reference. (I
 searched the garden without success.)


You place them in the same way as you did it in the past:

\starttext

\input ward

\inmargin{INMARGIN}

\input ward

\inleft {INLEFT}
\inright{INRIGHT}

\input ward

\ininner{INNER}
\inouter{OUTER}

\input ward

\stoptext

What has changed is how to defined a new command (\defineinmargin vs. 
\definemargindata)
and how to customize these commands (\setupinmargin vs. \setupmargindata + 
\setupmarginframed).

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
___


Re: [NTG-context] \inmargin

2012-03-03 Thread S Barmeier
Great, thank you.

Just in case I missed it on the mailing list... Is there a way of
floating a margin text to the top/bottom of the page (aligning with the
top/bottom of the text area)?

 Could someone savant provide me with a rough overview of how to place
 text in a margin these days, or else point me to a reference. (I
 searched the garden without success.)
 
 
 You place them in the same way as you did it in the past:
 
 \starttext
 
 \input ward
 
 \inmargin{INMARGIN}
 
 \input ward
 
 \inleft {INLEFT}
 \inright{INRIGHT}
 
 \input ward
 
 \ininner{INNER}
 \inouter{OUTER}
 
 \input ward
 
 \stoptext
 
 What has changed is how to defined a new command (\defineinmargin vs. 
 \definemargindata)
 and how to customize these commands (\setupinmargin vs. \setupmargindata + 
 \setupmarginframed).
 
 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
___


Re: [NTG-context] inmargin problem in mkiv with luatex when specified with stack

2011-02-25 Thread Wolfgang Schuster

Am 25.02.2011 um 05:20 schrieb Dinh Tran:

 Hello,
 
 Running the following context code doesn't seem to work with context 
 --luatex.  Works with context --xetex however.

It works in a (currently private) beta but stacking isn’t perfect yet.

BTW: The --luatex switch isn’t necessary to run MkIV.

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
___


Re: [NTG-context] \inmargin / full textwidth line interaction (was Toward the use of inleft…)

2010-11-26 Thread Wolfgang Schuster

Am 25.11.2010 um 21:27 schrieb Renaud AUBIN:

 Since my previous post doesn't seem inspiring at all (sniff), here is a
 simplified and more precise description of what need to be done:
 
 [...]

\setupbodyfont[10pt]

\setuplayout
  [leftedge=0mm,
   leftmargin=45mm,
   rightedge=0mm,
   rightmargin=0mm,
   backspace=60mm,
   topspace=10mm,
   bottomspace=10mm,
   header=0mm,
   headerdistance=0mm,
   footer=0mm,
   footerdistance=0mm,
   margindistance=0mm,
   height=middle,
   width=middle,
   grid=yes]

\setuppagenumbering[state=stop]

\setuphead[section]   [style=,command=\SectionCommand]
\setuphead[subsection][style=,command=\SubsectionCommand]

\define[2]\SectionCommand
  {\inleftmargin{\leftaligned{\structuretitle}}%
   \blackrule
 [ width=\textwidth,
  height=+.3\lineheight,
   depth=-.2\lineheight]}

\define[2]\SubsectionCommand
   {\vbox\bgroup
  \inleftmargin{\leftaligned{\em\structureuservariable{date}}}%
  {\bfa\structuretitle}\wordright{\tfx\structureuservariable{topic}}
  \blank
  {\em\structureuservariable{info}}%
\egroup}

\starttext

\startsection[title={A Section}]

\startsubsection
  [title={The detailled topic (which takes more than one line)}]
  [date={The date},topic={Knuth’s topic},info={some text}]

\input knuth

\stopsubsection

\startsubsection
  [title={The detailled topic (which takes more than one line)}]
  [date={Another date},topic={Zapf},info={some text}]

\input zapf

\stopsubsection

\stopsection

\startsection[title={Section}]

\startsubsection
  [title={Some details}]
  [date={A date},topic={Tufte}]

\input tufte

\stopsubsection

\stopsection

\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
___


Re: [NTG-context] \inmargin followed by \startlines = alignment fault?

2009-05-14 Thread Corsair
On Thu, May 14, 2009 at 09:11:04AM +0200, Hans Hagen wrote:
 Corsair wrote:
  Hi guys,
  
  I find that the `lines' environment (or description, itemize, etc.)
  after text in margin does not align right.  Consider the following
  code:
 
 in that case you can try \margintext {...} which saves the note and 
 flushes it later

Wow~  It works.  Thank you very much!  I should read the manual more
carefully next time :-p.

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgpnVkv4QZZN1.pgp
Description: PGP signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \inmargin footnotes

2006-01-11 Thread Taco Hoekwater


I can verify the problem, but I do not know what is wrong.

Taco

Charles Doherty wrote:

Dear all,

When I put a footnote reference within \inmargin

 \setupinmargin[style=\tfxx\setupinterlinespace]

he sent one of his followers to the man of God to put out his  rekindled 
fire \inmargin{This is a reference to the \italic{tellach} 
\footnote{Cf.\ Fergus Kelly, \slanted{A Guide to Early Irish Law},  68.} 
procedure for laying claim to land.} and ordered him to be  expelled 
from the territory.


When the footnote is typeset the footnote number is placed beneath  the 
first line of the footnote text. What can I do to have the  footnote 
number in its normal position?


Thanks,
Charlie


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] inmargin text problems remain

2003-10-16 Thread Bill McClain
On Thu, 16 Oct 2003 14:57:12 +0200
Willi Egger [EMAIL PROTECTED] wrote:

 Does anybody see the clue, how to tell Context to use the full
 marginwidth?

The problem is that notes in the left page outer margin do not use the
full margin width, right? If you change your setup to
use leftmargin=18mm it will match the outer margin on the right pages,
which is already set to 18mm.

If this case, rightmargin and leftmargin seem to refer to the outer
margins on the right and left pages, not the outer and gutter margins on
a single page.

-Bill
-- 
Sattre PressThe King in Yellow
http://sattre-press.com/ by Robert W. Chambers
[EMAIL PROTECTED] http://kiy.sattre-press.com/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \inmargin{} problems with typsetting inmargin texts

2003-10-12 Thread Bill McClain
On Sun, 12 Oct 2003 22:20:30 +0200
Willi Egger [EMAIL PROTECTED] wrote:

 The strange thing is, that on lefthandpages the inmargin text 
 is typset in the left (outer) margin but it is typeset on two lines, 
 indicating that the measures of the leftmargin of the righthandpage is
 used.

Does \showframe show symmetrical left and right margin areas?

I have a margin notes example on my help page. I define the right and
left margin areas explicitly like so:

\setuplayout[backspace=0.9375in, width=3.25in,
rightmargindistance=.25in, rightmargin=1.125in,
leftmargindistance=.25in, leftmargin=1.125in]
\setuppagenumbering[alternative=doublesided]

-Bill
-- 
Sattre PressCuriosities of the Sky
http://sattre-press.com/by Garrett Serviss
[EMAIL PROTECTED]http://csky.sattre-press.com/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context