Re: [NTG-context] Is it possible to put references format depending of mainlanguage? and other things
Xan wrote: Hi, I posted previously [http://www.ntg.nl/pipermail/ntg-context/2009/043675.html] but no one answer that. Is it possible to localizated bibliography module depending on \mainlanguage? I think for example in @inproceedings or @article in ams. It appears number for specifying the number of journal, but number is in english. It were useful if we could display número for \mainlanguage[es], nombre for \mainlanguage[ca], etc like we display tableofcontents or the title of references in \mainlanguage localization. There is only very limited support for internationalisation in the bib module, but at least you can define the reference title: \setupheadtext[ca][pubs=Referències] this definition is actually already there. For the small bits of text inside the reference list, you have to create a copy of the relevant bibl-xxx file with the two-letter language code attached to the name, edit that file to your liking, then do: \setuppublications[alternative=apa-ca] % for example. For the other hand, is it possible to define second references like wikipedia? I plan to write a document that will have a normal bibliography citations (like \cite[bridson] and display the book of Bridson) and a wikipedia-like citations for citing specifically paragraphs of text (that I want to display like wikipedia references \wikicite[This text appears in paragraph 2 of \cite[bridson] in a reject of ]) Is it possible? I am not sure whether I understand you correctly, but there is this command: \def\getcitedata [key][field] to \macroname which stores the value of 'field' in the reference 'key' into the \macroname. The idea is that you can use this to fetch any simple key from a reference anywhere in the document. Best wishes, Taco ___ 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 ___
[NTG-context] The header/footer settings compared to fancyhdr
Hi All, How to setup the complicated header/footer compared to LaTeX fancyhdr package? For example, how to use change line from the header/footer like follow LaTeX code? code \pagestyle{fancy} \headheight 35pt \fancyhf{} %delete current setting of header and footer \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} \renewcommand{\headrulewidth}{1pt} \renewcommand{\footrulewidth}{0.6pt} \lhead{\bfseries \rightmark} \chead{\textbf{\thepage}}% \rhead{\usebox{\mylogo}} \lfoot{} \cfoot{ \begin{tabular}{c} \textbf{Copyright 2009, My Company}\\ \small{You are free to copy, distribute, display, and perform the work}\\ \end{tabular}}% \rfoot{} /code Thanks in advance. Best regards, Joshua ___ 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] The header/footer settings compared to fancyhdr
On Oct 3, 2009, at 5:25 PM, Joshua Lee wrote: Hi All, How to setup the complicated header/footer compared to LaTeX fancyhdr package? For example, how to use change line from the header/footer like follow LaTeX code? code \pagestyle{fancy} \headheight 35pt \fancyhf{} %delete current setting of header and footer \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} \renewcommand{\headrulewidth}{1pt} \renewcommand{\footrulewidth}{0.6pt} \lhead{\bfseries \rightmark} \chead{\textbf{\thepage}}% \rhead{\usebox{\mylogo}} \lfoot{} \cfoot{ \begin{tabular}{c} \textbf{Copyright 2009, My Company}\\ \small{You are free to copy, distribute, display, and perform the work}\\ \end{tabular}}% \rfoot{} /code Thanks in advance. Best regards, Joshua Nobody here knows what this code does. This is the ConTeXt mailing list, you know. Thomas ___ 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 ___
[NTG-context] startlines
Hi Hans, here is a new attempt to get a more generalized version of the startlines macros, now mkiv only. Wolfgang \unprotect \def\linesparameter #1{\csname\dolinesparameter{\??rg\@@lines} #1\endcsname} \def\dolinesparameter #1#2{\ifcsname#1#2\endcsname#1#2\else \expandafter\dolinesparentparameter\csname#1\s!parent\endcsname#2\fi} \def\dolinesparentparameter#1#2{\ifx#1\relax\s!empty\else \dolinesparameter#1#2\fi} \getparameters [\??rg] [\c!option=, \c!before=\blank, \c!after=\blank, \c!inbetween=\blank, \c!indenting=\v!no, \c!space=\v!default] \def\definelines {\dodoubleempty\dodefinelines} \def\dodefinelines[#1][#2]% {\getparameters[\??rg#1][\s!parent=\??rg,#2]% \setvalue{\e!start#1}{\dostartlines[#1]}% \setvalue{\e!stop #1}{\dostoplines}} \def\setuplines {\dodoubleempty\dosetuplines} \def\dosetuplines[#1][#2]% {\doifelsenothing{#2} {\getparameters[\??rg][#1]} {\def\docommand##1{\getparameters[\??rg##1][#2]}% \processcommacommand[#1]\docommand}} \def\dostartlines[#1]% {\bgroup \edef\@@lines{#1}% \linesparameter\c!before \pushmacro\checkindentation \whitespace \begingroup \setupindenting[\linesparameter\c!indenting]% \typesettinglinestrue \setupwhitespace[\v!none]% \obeylines \ignorespaces \gdef\afterfirstobeyedline % tzt two pass, net als opsomming {\gdef\afterfirstobeyedline {\nobreak \doifnot{\linesparameter\c!option}\v!packed{\global\let \afterfirstobeyedline\relax}}}% \def\obeyedline {\par \futurelet\next\dobetweenthelines}% \activatespacehandler{\linesparameter\c!space}% \GotoPar} \def\dostoplines {\endgroup \popmacro\checkindentation \linesparameter\c!after \egroup} \def\dobetweenthelines {\doifmeaningelse\next\obeyedline {\linesparameter\c!inbetween} {\afterfirstobeyedline}} \definelines[\v!lines] \protect \definelines[verse][before={\blank[3*line]},after={\blank[3*line]}] \starttext line 1 \startlines line 2 line 3 \stoplines line 4 \startverse line 5 line 6 \stopverse line 7 \startlines line 8 line 9 \stoplines \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] startnarrower
Hi Hans, here is a new attempt to get a more generalized version of the startnarrower macros, now mkiv only. Wolfgang \unprotect \def\narrowerparameter #1{\csname\donarrowerparameter{\??sl \@@narrower}#1\endcsname} \def\donarrowerparameter #1#2{\ifcsname#1#2\endcsname#1#2\else \expandafter\donarrowerparentparameter\csname#1\s!parent\endcsname#2\fi} \def\donarrowerparentparameter#1#2{\ifx#1\relax\s!empty\else \donarrowerparameter#1#2\fi} \getparameters [\??sl] [\c!before=\endgraf, \c!after=\endgraf, \c!left=1.5em, \c!right=1.5em, \c!middle=1.5em] \def\definenarrower {\dodoubleempty\dodefinenarrower} \def\dodefinenarrower[#1][#2]% {\getparameters[\??sl#1][\s!parent=\??sl,#2]% \setvalue{\e!start#1}{\dodoubleempty\dostartnarrower[#1]}% \setvalue{\e!stop #1}{\dostopnarrower}} \def\setupnarrower {\dodoubleempty\dosetupnarrower} \def\dosetupnarrower[#1][#2]% {\doifelsenothing{#2} {\getparameters[\??sl][#1]} {\def\docommand##1{\getparameters[\??sl##1][#2]}% \processcommacommand[#1]\docommand}} \definenarrowermethod[\v!left ]{\global\advance\ctxleftskip \narrowerparameter\c!left \relax} \definenarrowermethod[\v!middle ]{\global\advance\ctxmidskip \narrowerparameter\c!middle\relax} \definenarrowermethod[\v!right ]{\global\advance\ctxrightskip \narrowerparameter\c!right \relax} \definenarrowermethod[-\v!left ]{\global\advance\ctxleftskip - \narrowerparameter\c!left \relax} \definenarrowermethod[-\v!middle]{\global\advance\ctxmidskip - \narrowerparameter\c!middle\relax} \definenarrowermethod[-\v!right ]{\global\advance\ctxrightskip- \narrowerparameter\c!right \relax} \definenarrowermethod[\v!reset ]{\global\ctxleftskip \zeropoint \global\ctxmidskip \zeropoint \global\ctxrightskip\zeropoint\relax} \definenarrowermethod[\v!none ]{} \def\dostartnarrower[#1][#2]% {\bgroup \ifsecondargument % \doifsomethingelse{#2}? \dodostartnarrower[#1][#2]% \else \dodostartnarrower[#1][\v!middle]% \fi} \def\dodostartnarrower[#1][#2]% {\edef\@@narrower{#1}% \narrowerparameter\c!before \global\ctxleftskip \zeropoint \global\ctxrightskip\zeropoint \global\ctxmidskip \zeropoint \processcommalistwithparameters[#2]\donarrower \advance\leftskip \dimexpr\ctxleftskip +\ctxmidskip\relax \advance\rightskip\dimexpr\ctxrightskip+\ctxmidskip\relax \seteffectivehsize} \def\dostopnarrower {\narrowerparameter\c!after \egroup} \def\v!narrower{narrower} \definenarrower[\v!narrower] \protect \definenarrower[wide] [before={\blank[2*line]},after={\blank [2*line]},middle=0.5em] \definenarrower[narrow][before={\blank[4*line]},after={\blank [4*line]},middle=4.0em] \starttext \input ward \startnarrower \input ward\endgraf \stopnarrower \input ward \startnarrow \input ward\endgraf \stopnarrow \input ward \startwide \input ward\endgraf \stopwide \input ward \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___