Re: [NTG-context] how to change 'figure 1.1' to ' 그림 1.1'
2007/9/6, Jeong Dalyoung <[EMAIL PROTECTED]>: > Hello, > > \placefloat will put 'figure 1.1' or 'table 1.1' below the figures(or > tables). > > I'd like to change figure or table to my own language. > I looked into the manual, but there is no option which change "figure > or table". > > I tried "definefloat[그림][그림들]", but ConTeXt did not accept it. > > Is there a way to change them? > > Thank you. > > Best regards, > > Dalyoung Hi, the labels for figures, tables etc. will change with your current main language in the document. \mainlanguage[cn] \starttext \placefigure{Caption}{Figure} \stoptext will use the chinese label for the figures. You can also define additional labels for other languages if there is no predefined for you. You can look into lang-chi.tex and lang-jap.tex for the definitions for chinese and japanese. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Margins around figures
Deat ConTeXt users, I am making a presentation with ConTeXt, with numerous MetaPost figures. Now, the only problem is that my white MetaPost figures don't blend well with the dark background of the screen. This isn't too good since the text labels in my figure's edges appear too close to the edge. What I'd like to know is, whether there's a way to specify some extra margin space around the figure, which would provide some more white area around the MetaPost figure. Alternately, is there an elegant MetaPost way of specifying figure margins? Oh, and my MetaPost files are in separate .mp files; I include them after converting. Thanks! Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036 ___ 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] verb-c.tex
Hmm! I can not find the problem. Here is a short example, showing the error. Hope that someone can give me a hint! \usemodule[verb-c] \starttext \startC "*\0" \stopC \stoptext and the errormessage: ! Extra \else. \doCtypefiveA ...mment \getpretties {#1}{#2}\else \ifinCsingle \getprettydat... \doCtypefourfour ...pretty \expandafter #2\fi \fi \fi \fi \fi "*\ 0"\relax \flushrestofverbatimline \processverbatimline #1->#1 \dodoverbatimline ...ax \flushrestofverbatimline } \endverbatimline \global \... \presetlastverbatimline ...r \doflushverbatimline \else \kern \zeropoint \do... ... l.16 \stopC ? ___ 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] itemize start=2
Hallo! > > > > I have tried snippets like > > > > > > > > \setupitemgroup[[itemize][start=2] > > > > \startitemize[n] > > > > \item zwei > > > > \item drei > > > > \stopitemize > > > > > > > > but could'nt found a solution. > > It looks like a misfeature (ie. bug) to me. > > > But two questions remain: > > > > 1) I am wondering, how you find such answers. What is your > strategie > > searching the sources? > > 2) What is that existing option 'start' for? Take this as an > example > > for question 1). > > As far as I can see, 'start' currently serves no purpose since it > gets > overridden in line 447 in > \expanded{\setitemparameter{\itemlevel}{\c!start}{1}}% > in core-itm.tex anyway. Try to comment out that line. > > The next problem lies a few lines below: > > \doifelsenothing{\getitemparameter\itemlevel\c!start} >{\def\currentitemoffset{1}} > > {\def\currentitemoffset{\getitemparameter\itemlevel\c!start}% > \letitemparameter\itemlevel\c!start\empty}% > > You need to say \edef instead of \def, otherwise the empty value > will > be used for calculating \currentitemoffset. > > How to search? It's difficult to tell, but in this particular > case, > you take a look into core-itm.tex (assuming you know where > itemizations are. If you don't, you can execute "grep \setupitem *" > in > tex/context/base/.) Then, you search for \c!start and try to > figure > out where it is used. You find \setitemlevel. OK, great. What does > it > do there? It's supposed to change \currentitemoffset. If you want > to check \currentitemoffset, you simply place > (my debug: \currentitemoffset) > at the end of \setitemlevel. Now, you either need to copy that > definition on the top of your document (which will override the > global > one), or remake the formats with "texexec --make en" before > running > texexec on your document again. You will get some extra info on top > of your itemization. It doesn't belong there, but you will remove it > afterwards. (Did I forget to say that it might be wise to make a > bacup > of the original file?) Now when you remade the formats (or placed > the > definition on top of your file or to cont-new.tex) and compiled > the > document again, take a look at the result. > > Oh, well, you only get (my debug: ). \currentitemoffset seems to > be empty. If I change the above /def to /edef I get (my debug: 1), but as a sideeffect the counter is incremented and therefor is starting with 2 then. > Then try to put > (I wanted to have: \getitemparameter\itemlevel\c!start) > somewhere at the beginning of \setitemlevel, somewhere inbetween > (after \expandex{...}) and somewhere at the end. It works at the > beginning, then it gets reset to 1, and then it gets deleted. > And they you try to figure out why. \letitemparameter\itemlevel\c!start\empty} commenting this line has too the above sideeffect that counting is started with 2. But I don't understand the whole thing. If I understand you right, the c!start is for increasing the itemizelevel NOT the numbering. So I wonder why the later is affected. Wolfgang > Btw: the two modifications mentioned above don't solve the problem > yet, since you now have a problem with offset +1 (I remember a bug > report from not so long ago, when itemizations started with 0, so > that > might be related). But I would better leave that for Hans. > Itemizations are so complex that I don't dare to touch anything > there. > > Mojca ___ 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] Page numbers at empty pages
Hi Gerhard, Am 06.09.2007 um 16:01 schrieb Gerhard Kugler: > On Thu, Sep 06, 2007 at 09:51:30AM +0200, Steffen Wolfrum wrote: >> >> Am 06.09.2007 um 09:35 schrieb Gerhard Kugler: >> >>> Hi, >>> >>> in case of double-sided pagination there are empty pages. >> >> Where do they come from (how are they generated?) >> >> >>> My publisher >>> does'nt want numbers at that pages. How can I set this? >> >> Maybe you just set "manually" an empty page: \page[yes,empty] >> > > Hi Steffen, > > that seems to me a misunderstanding. Empty pages are created > automatically because first pages of chapters begin at a right side. > That's ok. But if the last page before a chapter is empty, it should > not contain a header with the page number. I use the following setup (apologies for not translating the german comments): % Leere Linke Seiten sind leer: %\definepagebreak[chapter][yes,header,right]% klappt gut! NICHT: [empty,header,right \definepagebreak[chapter][yes,header]% klappt gut! NICHT: [empty,header,right] %\definepagebreak[section][yes,header] % zusätzlich innerhalb des bodymatter leere linke Seiten mit \page [yes,empty] manuell setzen \setupsectionblock[frontpart][page=no] \setupsectionblock[bodypart][page=no] \setupsectionblock[backpart][page=no] > An addition: The publisher wants that the header of pages contains at > the left the title of the chapter and at the right the title of the > subchapter. How to realize it? And here also: Empty pages should not > contain such a header. % SeitenZahl \definefont [SZfont][Serif at 9pt] \def\SZstyle{\SZfont \setupinterlinespace[line=11pt]} % Kopfzeile und Lebende Titel: \definefont [KopfzeileFont][Serif at 9pt] \def\KopfzeileStyle {\KopfzeileFont\setupinterlinespace[line=11pt]} % Layout + Position der Seitenzahl: \setuppagenumbering [command=\SZstyle,alternative=doublesided,location=] \setupheader[align=middle,style=\KopfzeileStyle] % Lebende Titel MITTIG: \setupheadertexts[\setups{text a}] [pagenumber] [pagenumber] [\setups {text b}] \startsetups[text a] \vtop{% \startalignment[center] \getmarking[chapter] \stopalignment } \stopsetups \startsetups[text b] \vtop{% \startalignment[center] \getmarking[section] \stopalignment } \stopsetups Steffen ___ 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] Page numbers at empty pages
Am 2007-09-06 um 16:01 schrieb Gerhard Kugler: > \setupheadertexts[\small chapter][\small section] \setupheadertexts has up to four parameters: [right page left][right page right][left page left][left page right] Don't know about the empty pages, though. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] how to change 'figure 1.1' to ' 그림 1.1'
Hello, \placefloat will put 'figure 1.1' or 'table 1.1' below the figures(or tables). I'd like to change figure or table to my own language. I looked into the manual, but there is no option which change "figure or table". I tried "definefloat[그림][그림들]", but ConTeXt did not accept it. Is there a way to change them? Thank you. Best regards, Dalyoung ___ 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] Page numbers at empty pages
On Thu, Sep 06, 2007 at 09:51:30AM +0200, Steffen Wolfrum wrote: > > Am 06.09.2007 um 09:35 schrieb Gerhard Kugler: > > > Hi, > > > > in case of double-sided pagination there are empty pages. > > Where do they come from (how are they generated?) > > > > My publisher > > does'nt want numbers at that pages. How can I set this? > > Maybe you just set "manually" an empty page: \page[yes,empty] > Hi Steffen, that seems to me a misunderstanding. Empty pages are created automatically because first pages of chapters begin at a right side. That's ok. But if the last page before a chapter is empty, it should not contain a header with the page number. An addition: The publisher wants that the header of pages contains at the left the title of the chapter and at the right the title of the subchapter. How to realize it? And here also: Empty pages should not contain such a header. \setupheadertexts[\small chapter][\small section] produces the words "chapter" and "section", and the page number is lacking. Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de ___ 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] Page numbers at empty pages
Am 06.09.2007 um 09:35 schrieb Gerhard Kugler: > Hi, > > in case of double-sided pagination there are empty pages. Where do they come from (how are they generated?) > My publisher > does'nt want numbers at that pages. How can I set this? Maybe you just set "manually" an empty page: \page[yes,empty] > > Greetings > > Gerhard HTH, Steffen ___ 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] Page numbers at empty pages
Hi, in case of double-sided pagination there are empty pages. My publisher does'nt want numbers at that pages. How can I set this? Greetings Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de ___ 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 ___