Tag Info

New answers tagged

2

for example: \language [en] \definepapersize[Book] [width=14cm,height=21cm] \setuppapersize [Book] [A4] \setuppagenumbering [alternative=doublesided, location={footer,marginedge}, way=bytext, sectionnumber=no, partnumber=no] \setuplayout [width=11cm, height=16.5cm, header=14pt, headerdistance=10pt, footer=24pt, ...


4

After a few false starts, it became clear that || is the result of a ConTeXt convention, and for reasons more interesting than mere caprice. From ConTeXt's lang-mis.mkiv file: One of TEX's strong points in building paragraphs is the way hyphenations are handled. Although for real good hyphenation of non-english languages some extensions to the ...


5

Using || for producing a double em-dash is abusing the system. The fact that | produces an em-dash, when the output font encoding is OT1, is purely incidental and should never be relied upon. The “right” way in TeX/LaTeX for obtaining an em-dash is by typing --- and this works also with fontspec, provided the Ligatures=TeX option, that's activated by ...


2

You can define a new interaction and style it differently. For example: \setupinteraction[state=start,style=normal] \defineinteraction[bold][state=start,style=bold] \starttext {\setinteraction[bold] \goto{Link 1}[url(http://www.example.com)]} \goto{Link 2}[url(http://www.example2.com)] \stoptext If you want the interaction to follow the style of the ...


2

If I change the position of the \bf directive, I seem to get your desired result: \setupinteraction[state=start,style=normal] \starttext {\goto{\bf Link 1}[url(http://www.example.com)]} \goto{Link 2}[url(http://www.example2.com)] \stoptext However, I am uncertain if there might be side effects to this.


3

ConTeXt MkIV related files: User-Input Files .tex: For content and typesetting instructions. .cld: For ConTeXt Lua Documents .xml: For XML data (related: .xhtml) Macro package files .mkiv: Code for MkIV .mkvi: Code for MkIV written with named variables \def\macro#{val1}#{val2} rather than \def\macro#1#2, etc.) .lua: Lua code for MkIV .lfg: Goodies for ...


1

Some further extension you might encounter depending on what packages you are using: .soc - package changes .fdb_latexmk - compile tool latexmk .fls - running latex with $ latex -recorder .spl - documentclass elsarticle (Elsevier journals)


1

Following up on @Aditya LuaTeX reference, here is an alternative solution based on lua: \setuppapersize[A5] \setupindenting[0.2in,yes] % Create an environment that stores everything % between \startpreformatted and \stoppreformatted % in a buffer named 'preformatted'. \def\startpreformatted {\dostartbuffer [preformatted] [startpreformatted] ...


3

As explained in Metafox's answer to your previous question, you can use the paragraph alignment to achieve this effect. For example, \showframe % to visualize the page \starttext \setuplines[align=paragraph] \startlines First line --- should be fully justified Secondline --- should be fully justified \stoplines \stoptext gives Edit Here is one way to ...


1

To justify a single line of text you use \maxaligned or \startmaxaligned. For the same effect for the last line in a paragraph you can use the paragraph keyword for the \startalignment environment. \starttext \startlinealignment[max] Hello world \stoplinealignment % \startmaxaligned % Hello world % \stopmaxaligned % % \maxaligned{Hello world} ...


1

As @egreg noted, \break does the job.


2

The letter environment uses a buffer to collect the content before it it adds the other elements (e.g. the opening). To use a buffer environment from Lua you have to use context.delayed instead of context in your code. \usemodule[letter] \startluacode userdata = userdata or {} function userdata.printLetter() context.delayed.startletter() ...


1

One option is to use a table, for example, tabulate \showframe % For visual debugging \useURL[aurl][http://cs.ucsd.edu/~mmoghimi][][http://cs.ucsd.edu/~mmoghimi] \starttext \starttabulate[|lp(0.5\textwidth)|rp(0.45\textwidth)S|] \NC {\tfb Mohammad Moghimi}\crlf \italic{Curriculum Vitae} \NC 9234 Regents Rd Apt H \crlf La Jolla, CA, 92037 ...


2

Aren't we advised not to use \startlinecorrection? Or in other words, to use it only sporadically? My friend Gaussler, my friend Gaussler, why don't you apply glues above and below, but most important all over? \showgrid \starttext \dorecurse{3}{\input knuth} \startformula \abovedisplayskip 0.5cm \startmathalignment \NC x^2 + y^2 \NC = z^2\NR[+] \NC ...


2

The easiest solution is to wrap your formula into a pair of startlinecorrection ... stoplinecorrection; this will disregard the grid for the formulas themselves but align the material after them on the grid, which I assume is what you want. If you need more control, have a look at chapter 4 of It's in the Details, available at the [pragma website]: 1


3

You are looking for \setupitemize[inmargin].


2

Aditya's comment above: \tfa etc. are not meant to be used for entire paragraphs. Just like \bf etc., in plain TeX, you should use them inside groups. If you want to explicitly set the font back to the "normal" font, you need to use \setupbodyfont[reset] or \setupbodyfont[reset, 11pt]


2

My set of recommendations is this: Teach your friend to write Markdown. She can do so even in MS Word: there is a plugin called Writage which makes it easier for people used to Word. There are also other Markdown editors available (some being implemented in JavaScripts and directly running in browser windows providing a live-rendered HTML preview -- like ...


4

Do not combine the two files, just save them as they are: m-resume.tex and cv-resume.tex Then, run texexec cv-resume.tex. You will get your PDF without errors.


2

compare the different boxes: \starttext foo\hfill bar \def\test#1#2{\hbox to \hsize \bgroup \hfill \setupframed[height=5cm,offset=.5em,frame=on,backgroundcolor=red] \framed[width=0.2\hsize,align=left,framecolor=blue]{#1}% \framed[width=0.29\hsize,align=left,leftframe=off,framecolor=red]{#2}% \egroup} \blank \framed{\test{some more text}{the second ...


2

Caveat emptor ... You should know that I do not recall ever running context before and, judging by the first run, context doesn't recall my ever running it either. (Why is it trying to glob what it thinks are weird filenames like ChangeLog?) Anyway, I got this from this \setupcolors[state=start] \setuppagenumbering[location=footer, right] ...



Top 50 recent answers are included