Re: [NTG-context] Resume module with moderncv interface

2016-10-11 Thread Jonas Baggett

Le 10. 10. 16 à 22:29, Wolfgang Schuster a écrit :

Yes, the moderncv interface is gone (together with the alternative 
interfaces for the letter module) but you can see a different method 
below. If you really want a copy of the moderncv package for ConTeXt 
you should convert the LaTeX code to ConTeXt and make a separate 
module for it.


I have finally used latex with the moderncv package for my CV and I am 
using ConTeXt with the letter module for my cover letters and I am happy 
with this solution. I have made my cover letter template look a lot like 
the cover letter generated by the moderncv latex package.


I saw that you are the creator of the letter module, so I want to thank 
you for the work !


Greetings,
Jonas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Resume module with moderncv interface

2016-10-10 Thread Wolfgang Schuster

Jonas Baggett 
6. Oktober 2016 um 13:38
Hello,

I am trying to use the resume module with the moderncv interface 
without any success so far. I have errors when I am trying to use any 
of the added commands like \setresumevalue or \cvline. Log file is 
attached.


Here is my context file (CV.tex) :


\usemodule[resume][interface=moderncv,style=casual]

\starttext

\setresumevalue{firstname} {John}
\setresumevalue{familyname}{Doe}

\startresume

\cvline{A} {B}

\stopresume

\stoptext


I have compared the list of the installed files of an old version of 
the ubuntu context-modules package 
(http://packages.ubuntu.com/fr/precise/all/context-modules/filelist) 
with a recent one 
(http://packages.ubuntu.com/fr/xenial/all/context-modules/filelist) 
and it seems to me that the moderncv interface was removed in ConTeXt 
some time ago. Is it really the case ?
Yes, the moderncv interface is gone (together with the alternative 
interfaces for the letter module) but you can see a different method 
below. If you really want a copy of the moderncv package for ConTeXt you 
should convert the LaTeX code to ConTeXt and make a separate module for it.


 begin example
\usemodule[resume]

%\useresumestyle[casual-blue]
\useresumestyle[classic-blue]

\setupresumeoptions
  [bodyfont=calluna]

\setupresume
  [firstname=John,
   familyname=Doe,
   title=Resumé title (optional),% classic style only
   quote=My quote,% casual style only
   image={\externalfigure[dummy][width=3cm,height=4cm]}]

\setupresume
  [street={street and number},
   town={postcode city},
   mobile={+1(234)567890},
   phone={+2(345)678901},
   fax={+3(456)789012},
   email={j...@doe.org},
   info={additional information}]

\startresume

\startresumesection[title={Knuth}]

\startresumesubsection[title={Zapf}]

\starttwocolumns
\input ward
\stoptwocolumns

\stopresumesubsection

\stopresumesection

\page

\startresumesection[title={Knuth}]

\startresumesubsection[title={Zapf}]

\starttwocolumns
\input ward
\stoptwocolumns

\stopresumesubsection

\stopresumesection

\stopresume
 end example


To add dates to entries you can use the lefttext key for the twocolumns 
environment, e.g.


\starttwocolumns[lefttext=...]
...
\stoptwocolumns


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Resume module with moderncv interface

2016-10-06 Thread Jonas Baggett

Hello,

I am trying to use the resume module with the moderncv interface without 
any success so far. I have errors when I am trying to use any of the 
added commands like \setresumevalue or \cvline. Log file is attached.


Here is my context file (CV.tex) :


\usemodule[resume][interface=moderncv,style=casual]

\starttext

\setresumevalue{firstname} {John}
\setresumevalue{familyname}{Doe}

\startresume

\cvline{A} {B}

\stopresume

\stoptext


I have compared the list of the installed files of an old version of the 
ubuntu context-modules package 
(http://packages.ubuntu.com/fr/precise/all/context-modules/filelist) 
with a recent one 
(http://packages.ubuntu.com/fr/xenial/all/context-modules/filelist) and 
it seems to me that the moderncv interface was removed in ConTeXt some 
time ago. Is it really the case ?



Best regards,
Jonas Baggett
open source > 1 > 1 > /usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2016.10.6  int: english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > /usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 > /usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv
system  > files > jobname 'CV', input './CV', result 'CV'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/jonas/Documents/context/CV/CV.tex
resolvers   > modules > 'resume' is loaded
interface   > macros > processed mkvi file '/usr/share/texmf/tex/context/third/letter/base/s-cor-03.mkvi', delta 84
interface   > macros > processed mkvi file '/usr/share/texmf/tex/context/third/letter/base/s-cor-03.mkvi', delta 0
open source > 3 > 4 > /usr/share/texmf/tex/context/third/letter/base/s-cor-03.mkvi
resolvers   > modules > 'cor-00' is loaded
interface   > macros > processed mkvi file '/usr/share/texmf/tex/context/third/letter/base/s-cor-00.mkvi', delta 2365
interface   > macros > processed mkvi file '/usr/share/texmf/tex/context/third/letter/base/s-cor-00.mkvi', delta 0
open source > 4 > 5 > /usr/share/texmf/tex/context/third/letter/base/s-cor-00.mkvi
resolvers   > lua > loading file '/usr/share/texmf/tex/context/third/letter/base/s-cor-00.lua' succeeded
close source> 4 > 5 > /usr/share/texmf/tex/context/third/letter/base/s-cor-00.mkvi
open source > 4 > 6 > /usr/share/texmf/tex/context/third/letter/style/resume-imp-default.mkiv
close source> 4 > 6 > /usr/share/texmf/tex/context/third/letter/style/resume-imp-default.mkiv
open source > 4 > 7 > /usr/share/texmf/tex/context/third/letter/style/resume-imp-casual.mkiv
open source > 5 > 8 > /usr/share/texmf/tex/context/third/letter/style/resume-imp-default.mkiv
close source> 5 > 8 > /usr/share/texmf/tex/context/third/letter/style/resume-imp-default.mkiv
close source> 4 > 8 > /usr/share/texmf/tex/context/third/letter/style/resume-imp-casual.mkiv
close source> 3 > 8 > /usr/share/texmf/tex/context/third/letter/base/s-cor-03.mkvi
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded

tex error   > tex error on line 5 in file /home/jonas/Documents/context/CV/CV.tex: ! Undefined control sequence

l.5 \setresumevalue
 {firstname} {John}

 1 \usemodule[resume][interface=moderncv,style=casual]
 2 
 3 \starttext
 4 
 5 >>  \setresumevalue{firstname} {John}
 6 \setresumevalue{familyname}{Doe}
 7 
 8 \startresume
 9 
10 \cvline{A} {B}
11 
12 \stopresume
13 
14 \stoptext
15 


? 

tex error   > tex error on line 6 in file /home/jonas/Documents/context/CV/CV.tex: ! Undefined control sequence

l.6 \setresumevalue
 {familyname}{Doe}

 1 \usemodule[resume][interface=moderncv,style=casual]
 2 
 3 \starttext
 4 
 5 \setresumevalue{firstname} {John}
 6 >>  \setresumevalue{familyname}{Doe}
 7 
 8 \startresume
 9 
10 \cvline{A} {B}
11 
12 \stopresume
13 
14 \stoptext
15 


? 
backend > xmp > using file '/usr/share/texmf/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1

tex error   > tex error on line 1 in file virtual://buffer.616>resume.1: ! Undefined control sequence

l.1 \par\cvline
 {A} {B}




? 
pages   > flushing realpage 2, userpage 2, subpage 1
close source> 2 > 8 > /home/jonas/Documents/context/CV/CV.tex
close source> 1 > 8 > /usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv

system  > structure > start used structure

used structure  > text: CV

system  > structure > stop used structure


system  > files > start used files

used file   >1: filename=cont-yes.mkiv filetype=tex foundname=/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
used file   >2: