[NTG-context] Vertical align in side by side paragraphs
Hello, How can I make both/all columns in a paragraphs environment align flush bottom, e.g. for addressing a letter? I saw a line in the manual about using top=\vfill but I couldn’t get this to work. Should I be using TABLE here? Thanks (again), Tom \starttext \defineparagraphs[Par] [n=2, before={\blank}, after={\blank}] \setupparagraphs[Par][1] [align=flushleft] \setupparagraphs[Par][2] [align=flushright] \startPar \vfill % I hoped this would push bob’s address down Bob’s name \crlf Company \crlf Bob’s street \crlf Bob’s town \crlf Bob’s country \Par My street \crlf My town \crlf My country \blank My phone number \blank Today's date \stopPar Dear Bob, Blah blah blah \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Overlapping terms in description lists
Thanks for the reply. > On 21 Apr 2016, at 1:18 pm, luigi scarso wrote: > > the title is in a \vtop and not a \vbox, and its height is fixed to \strutht > (and the depth to \strutdp) > so basically the title is one line. OK, I’ll do my best to stick to one line. I guess it would be better to use a paragraphs or column environment for long labels but the ConTeXt is generated by pandoc, which writes 'definition lists' as \startdescription \stopdescription.___ 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 ___
[NTG-context] Overlapping terms in description lists
Hello again, The document I'm typsetting uses description lists. To keep the list entries close together I'm using before=\nowhitespace and after=\nowhitespace in \definedescription. This is fine so long as the term is short, but when the term wraps to two lines it can overlap with the term below. Here's an example: \setuppapersize[A5] \setupalign[flushleft, nothyphenated] \definedescription[description] [before=\nowhitespace, after=\nowhitespace] \starttext \startdescription{Short term:} Items with short terms are fine. \stopdescription \startdescription{This is a really long term:} Long term + short definition \stopdescription \startdescription{This is a really long term:} ... the long term of the item above the mashes into the term below. \stopdescription \stoptext And here is an attempt at a plain text representation of what I'm trying to achieve: Short term: Items with short terms are fine. This is a really long term: Long term + short definition This is a really long term: ... the long term of the item above the mashes into the term below. Is this possible using \definedescription? I tried some combinations of \vfill and \framed but I couldn't get it to work. Sorry to repeatedly post newbie questions. Any tips would be appreciated! Thanks, Tom ___ 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] Move textrule closer to head
On 13/04/16 18:47, Pablo Rodriguez wrote: Hi Tom, how about another rule? (From http://wiki.contextgarden.net/Titles#Titling_Style.) \setuphead[subsubsection] [after=\hrule\blank] I hope it helps, Pablo Ahh, it's perfect. I missed that page of the wiki! Thank you. ___ 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 ___
[NTG-context] Move textrule closer to head
Hello, I'm a ConTeXt beginner. I'm working on a document where I would like a textrule under my subsubsection headings. If I use after=\textrule, the placement of the textrule is too far from the heading, and I haven't found a way to move it closer to the heading either with \setuphead or \setuptextrules. Here is an example: \setuphead[subsubsection] [after=\textrule] \starttext \subsubsection{I would like less space between this heading and its textrule} Here is some text. \stoptext I realise that the spacing looks pretty good in the PDF produced by this example, so you'll just have to believe me that it needs to be closer to the headings in my document. I'd appreciate any help on this, including suggestions of alternative/better methods to do this. Thanks for reading, Tom ___ 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 ___
[NTG-context] Possible typo in source file type-imp-lato.mkiv
Hi, I was having trouble getting italics to work for a PDF that uses the Lato font. Bold and 'normal' were rendering just fine. In the log I saw some lines like: fonts > defining > font with asked name 'lato-reglta' is not found using lookup 'file' fonts > defining > unknown font 'lato-reglta', loading aborted I noticed Context was searching for *reglta (with a lower case "L") rather than regita (with an "i"). Looking at the file http://source.contextgarden.net/tex/context/base/type-imp-lato.mkiv I can see that all the synonyms point to *lta rather than *lta inside the \definefontsynonym commands. I tried changing all the instances of *lta to *ita in type-imp-lato.mkiv on two different systems (Ubuntu and MacOS) and in both cases I subsequently got italics in my PDF. I suppose this could be a bug. Is this list the right place to report it? My apologies if it is in fact something I was doing wrong! Thanks, Tom ___ 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 ___
[NTG-context] Apply a start/stop command pair to certain subsections
Hello, I'm a new Context user, and I have a question about conditional formatting of paragraphs. I'm typsetting a CV. I am using pandoc to generate the .tex file from Markdown before compiling the pdf with context. Because pandoc inserts the body of the document from one variable ($body), I would like to avoid using e.g. \startmycommand and then \stopmycommand to modify individual subsections. What I can do from Markdown is tag the headings, so that (for example) the "Publications" subsection starts as "\subsection[pubs]{Publications}". I would like to know if there is a way to automatically apply a start/stop command pair to the "pubs" subsection(s), or if it better to do this with an external script that modifies the .tex file before I call context. Below is an example where I can get the output I'm looking for (paragraphs in the "pubs" subsection have a hanging indent) by defining a start/stop command pair and manually applying it to the "pubs" subsection. If anyone has any tips to apply this automatically to the "pubs" subsection(s) but not the "text" subsections, I'd appreciate it! I have searched the wiki, read through the "Context: an excursion" document and looked around in the mail archive and stackexchange, but I didn't find exactly what I want. Many thanks for reading, Tom Harrop ---Example below--- \definestartstop [negindent] [ before={% \startnarrower[left]% \setupindenting[-\leftskip,yes,first]% \setuphead[subsection][indentnext=yes]% }, after=\stopnarrower, ] \starttext \subsection[text]{Normal text} I would like the text in this subsection to appear without indents. In the following subsection I need hanging indents. \startnegindent \subsection[pubs]{Publications} Jaynes, Julian. {\os 1990}. {\em The Origin of Consciousness in the Breakdown of the Bicameral Mind}. New York City: Houghton Mifflin Company. Pye, David. {\os 1995}. {\em The Nature and Art of Workmanship}. London: The Herbert Press. Persson, Tomas. {\os 2008}. {\em Pictorial Primates: A Search for Iconic Abilities in Great Apes}. Lund: Lund University Cognitive Studies. \stopnegindent \subsection[text]{More text} This subsection should be back to normal. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___