ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Manuel González Suárez" <manuelteral@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: compilation problem (TeXLive 2013)
Date: Thu, 4 Jul 2013 00:05:03 +0200	[thread overview]
Message-ID: <CAPgWwFWP2TBzO_U-U0A+d8rKs8ceg-TeY+TrY7dL5ucARM8pGQ@mail.gmail.com> (raw)
In-Reply-To: <012D621C-0788-46CF-A01C-B0EF6D0F5A8C@gmail.com>


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

There is the example:

\enableregime[utf]

\usemodule[ancientgreek][font=GFSPorson,scale=1.1]

\mainlanguage[es]

\setuppapersize[A4]

\setupbodyfont[12pt]

%\setupbodyfont[ber,pos]

\setupindenting[medium]\indenting[always]

\usemodule[lettrine]

%\usetypescript [palatino] [ec]

%\switchtotypeface [palatino] [14pt]



\setuplist

[chapter]

[before=\blank,after=\blank,style=bold]

\setuplist

[section]

[alternative=d,left=(,right=),pagestyle=slanted,prefix=no]


\setupheader[style=\sc,color=gris]

\setupfooter[style=\sc]

\setupheadertexts[Ilíada][pagenumber]

\setupfootertexts[chapter][]

\setupinteraction[state=start]

\setupcolors[state=start]

\setuppagenumbering [location=,alternative=doublesided]

\setupinmargin[style=\bfx]

\definecolor [gris] [s=0.50]

\definecolor[grisoscuro][s=0.40]


\setuphead

[chapter]

[color=darkblue,numberstyle=bold,alternative=inmargin,

textstyle={\bf\sc},

before=\hairline\blank,

after=\nowhitespace\hairline]

\setuphead

[section]

[color=grisoscuro,numberstyle=bold,

textstyle={\sc\bf}]

\setuphead

[subsection]

[color=grisoscuro,textstyle=\sc]


%\define[2]\dos{%

% \bTABLE

% \setupTABLE[align=middle]

% \setupTABLE[r][1][style=\**small]

% \setupTABLE[r][2][style={\**small\small\em}]

% \bTR\bTD#1\eTD\eTR

% \bTR\bTD#2\eTD\eTR

% \eTABLE

% }



\unexpanded\def\dos#1#2%

{\dontleavehmode

\begingroup

\setbox0\struttedbox{\ix\em#1}%

\setbox2\struttedbox{\localgreek{#2}}%

\ifdim\wd0>\wd2

\setbox2\hbox to \wd0{\hss\box2\hss}%

\else

\setbox0\hbox to \wd2{\hss\box0\hss}%

\fi

\box0

\kern-\wd2

\raise\lineheight\box2

\endgroup}

\indenting[never]

\setuplinenumbering[step=5]



\starttext

\chapter{Canto 1}


\startlinenumbering[]

\dos{La cólera}{M~hnin} \dos{canta}{>'aeide} \dos{diosa}{je`a} \dos{del
hijo de Peleo}{Phlh"i'adew} \dos{Aquiles}{>Aqil~hoc}\crlf

\dos{funesta,}{o>ulom'enhn,} \dos{la que}{<`h} \dos{muchos}{mur'i''} \dos{a
los aqueos}{>Aqaio~ic} \dos{dolores}{>'alge''} \dos{impuso,}{>'ejhke,}\crlf

\dos{y muchas}{poll`ac d''} \dos{generosas}{>ifj'imouc} \dos{almas}{yuq`ac}
\dos{al Hades}{>'A"idi} \dos{arrojó}{pro"'iayen} \crlf

\dos{de héroes,}{<hr'wwn,} \dos{y a ellos}{a>uto`uc d`e}
\dos{despojos}{<el'wria} \dos{hizo}{te~uqe} \dos{para los
perros}{k'unessin} \crlf

\dos{y las aves rapaces}{o>iwno~is'i te} \dos{todas,}{p~asi,} \dos{de
Zeus}{Di`oc} \dos{-}{d''} \dos{se cumplía}{>etele'ieto} \dos{el
plan,}{boul'h,} \crlf

\dos{desde}{>ex} \dos{que}{o<~u} \dos{ya}{d`h} \dos{a lo}{t`a}
\dos{primero}{pr~wta} \dos{se distanciaron}{diast'hthn}
\dos{disputando}{>er'isante} \crlf

\dos{el hijo de Atreo}{>Atre"'idhc} \dos{-}{te} \dos{soberano}{>'anax}
\dos{de hombres}{>andr~wn} \dos{y}{ka`i} \dos{el divino}{d~ioc}
\dos{Aquiles.}{>Aqille'uc.} \crlf

\dos{¿Quién}{T'ic} \dos{entonces}{t'ar} \dos{a ellos}{sfwe} \dos{de los
dioses}{je~wn} \dos{a la riña}{>'eridi} \dos{lanzó}{xun'ehke} \dos{a
combatir?}{m'aqesjai?}\crlf

\dos{De Leto}{Lhto~uc} \dos{y}{ka`i} \dos{de Zeus}{Di`oc} \dos{el
hijo;}{u<i'oc;} \dos{éste}{<`o} \dos{pues}{g`ar} \dos{con el
rey}{basil~h"i} \dos{encolerizado}{qolwje`ic} \crlf

\dos{una peste}{no~uson} \dos{por}{>an`a} \dos{el campamento}{strat`on}
\dos{provocó}{>'orse} \dos{mala,}{kak'hn,} \dos{y morían}{>ol'ekonto d`e}
\dos{las huestes,}{lao'i,} \crlf

\dos{porque}{o<'uneka} \dos{a aquel}{t`on} \dos{Crises}{Qr'ushn}
\dos{deshonró}{>ht'imasen} \dos{al sacerdote}{>arht~hra} \crlf

\dos{el hijo de Atreo;}{>Atre'"idhc;} \dos{éste}{<`o} \dos{pues}{g`ar}
\dos{llegó}{>~hlje} \dos{rápidas}{jo`ac} \dos{a}{>ep`i} \dos{las
naves}{n~hac} \dos{de los aqueos}{>Aqai~wn} \crlf

\stoplinenumbering

\stoptext


And there is the error:


\dos ...de \begingroup \setbox 0\struttedbox {\ix

\em #1}\setbox 2\struttedb...

l.78 \dos{La cólera}{M~hnin}

\dos{canta}{>'aeide} \dos{diosa}{je`a} \dos{del ...

?


2013/7/3 Wolfgang Schuster <schuster.wolfgang@gmail.com>

>
> Am 03.07.2013 um 23:52 schrieb MANUEL GONZALEZ SUAREZ <
> gonzalezsmanuel@uniovi.es>:
>
> *
> *
> *Hello everyone.*
> *I recently changed from TeXLive 2011 to TeXLive 2013 (Windows Vista) and
> the editor TeXworks. For translations word for word, I have these two codes
> provided by Hans on this list, but none of them works now:*
>
> *\define[2]\dos{%
>     \bTABLE
>       \setupTABLE[align=middle]
>       \setupTABLE[r][1][style=\**small]
>       \setupTABLE[r][2][style={\**small\small\em}]
>      \bTR\bTD#1\eTD\eTR
>       \bTR\bTD#2\eTD\eTR
>     \eTABLE
>  }
> And the othe code:*
>
> *\unexpanded\def\dos#1#2%
> >   {\dontleavehmode
> >    \begingroup
> >    \setbox0\struttedbox{#1}%
> >    \setbox2\struttedbox{#2}%
> >    \ifdim\wd0>\wd2
> >      \setbox2\hbox to \wd0{\hss\box2\hss}%
> >    \else
> >      \setbox0\hbox to \wd2{\hss\box0\hss}%
> >    \fi
> >    \box0
> >    \kern-\wd2
> >    \raise\lineheight\box2
> >    \endgroup}*
>
> *Thank you for your attention.*
>
>
> 1. Provide a working minimal example.
>
> 2. What doesn’t work or which error message do you get?
>
> 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: 9781 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
___________________________________________________________________________________

  reply	other threads:[~2013-07-03 22:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 21:52 MANUEL GONZALEZ SUAREZ
2013-07-03 21:55 ` Wolfgang Schuster
2013-07-03 22:05   ` Manuel González Suárez [this message]
2013-07-03 22:12     ` Wolfgang Schuster
2013-07-03 22:19       ` Manuel González Suárez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPgWwFWP2TBzO_U-U0A+d8rKs8ceg-TeY+TrY7dL5ucARM8pGQ@mail.gmail.com \
    --to=manuelteral@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).