Re: [NTG-context] bibliography: alignment of first hanging lines in publications list, hyphenation
I looked in the wiki for “descriptions” and found this: http://wiki.contextgarden.net/Command/setupdescriptions I played around a lot with the parameters from there in \setupbtxlist, but the problem remains. The only way to get hanging indentation is \setupbtxlist[alternative=hanging] and no matter what else I change the respectively first lines of every publications list entry are not aligned to the very left of the full text width :( Maybe it has something to do with the numbering? If I use \setupbtxrendering[numbering=yes] the numbers are aligned properly to the very left while the following beginnings of the entries are not. Maybe the problem is that the numbers are only “hidden”, but not really “deleted”? (Excuse my probably incorrect use of terminology.) For comparison I tried the old mechanism again: \setupbibtex[database={},sort=author] \setuppublications[alternative=apa] \starttext \title{Literaturverzeichnis} \placepublications[criterium=all] \stoptext Here the hanging first lines of each entry align with the title at the very left. I can live with the actual state of the new mkiv mechanism for now as my lecturers’ eyes will be blinded by the remaining perfect ConTeXt layout :) But in future it would be great to have a real hanging indentation in the publications list according to the definition that in hanging indentation in contrary to normal indentation all but the very first line (which starts as a normal line at the very left) are indented. Greetings Jörg PS: By the way, Did I thank you for making this great software freely available and for the great quick support on the mailing list? On 28.01.2015 14:39, Jörg Weger wrote: But with > \setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}] there is no hanging indentation. Isn’t it possible for the first “hanging” line of an hanging indentation layout to start exactly on the very left, while the next lines are exactly indented? > just the settings of descriptions To be honest, i don’t know exactly what you mean by „descriptions“. Greetings Jörg On 28.01.2015 10:00, Hans Hagen wrote: On 1/28/2015 8:42 AM, Jörg Weger wrote: Attached are a MWE using plain APA and the corresponding BibTeX file. (Don’t mind the mistakes regarding series/volumes, I got that working in my personal setup that overrides plain APA.) APA style defaults with hanging indents in the publications list. The respectively hanging first lines of each entry in the publications list are not properly aligned on the left. (The indented lines are). I would like all of those first lines to start on the very left of the textfield. If I use \hyphenation to prevent e.g. names from being hyphenated those words might be driven into the right margin. Hanging punctuation doesn’t seem to work as well. Is there anything that can be done about that? Or how can the justification be switched to flush left/ragged right with hanging indents on the left? \setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}] just the settings of descriptions Greetings Jörg PS: And by the way, “\placebtxrendering[criterium=all]” is not working anymore. I think I had it working before to place all entries from the BibTeX file into the publications list regardless of their actual appearance in the text as citations–which was a good way to test only the publications list’s layout. \placebtxrendering[method=dataset] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___ ___ 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 ___
Re: [NTG-context] Where is error in my code?
On Wed, Jan 28, 2015 at 5:49 AM, Van Dung Tang wrote: > I edit 1 file metafun with follow: > > \startMPenvironment > \usetypescript[times][texnansi] > \switchtobodyfont[times,10pt] > \stopMPenvironment > \startMPpage > fill fullcircle scaled 2cm withcolor red; > label(\sometxt{Cn},origin) withcolor white; > \stopMPpage > > After run context and recieve 1 picture with a space very very long at > left my picture. > > Please help me find my error! If you use MkII (texexec document.tex), use the following: \setupcolors[state=start] \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \starttext \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{\color[white]{Cn}},origin); \stopMPpage \stoptext There is no need to set the font inside the MP environment when using \sometxt{} (those definitions are causing issues with whitespaces) and you need to set the colour inside the text. If you use MkIV (context document.text), you should use: \switchtobodyfont[times,10pt] \starttext \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{\color[white]{Cn}},origin); \stopMPpage \stoptext but label(\sometxt{Cn},origin) withcolor white; works in MKIV as well. I strongly suggest you to use MkIV. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography: alignment of first hanging lines in publications list, hyphenation
But with > \setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}] there is no hanging indentation. Isn’t it possible for the first “hanging” line of an hanging indentation layout to start exactly on the very left, while the next lines are exactly indented? > just the settings of descriptions To be honest, i don’t know exactly what you mean by „descriptions“. Greetings Jörg On 28.01.2015 10:00, Hans Hagen wrote: On 1/28/2015 8:42 AM, Jörg Weger wrote: Attached are a MWE using plain APA and the corresponding BibTeX file. (Don’t mind the mistakes regarding series/volumes, I got that working in my personal setup that overrides plain APA.) APA style defaults with hanging indents in the publications list. The respectively hanging first lines of each entry in the publications list are not properly aligned on the left. (The indented lines are). I would like all of those first lines to start on the very left of the textfield. If I use \hyphenation to prevent e.g. names from being hyphenated those words might be driven into the right margin. Hanging punctuation doesn’t seem to work as well. Is there anything that can be done about that? Or how can the justification be switched to flush left/ragged right with hanging indents on the left? \setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}] just the settings of descriptions Greetings Jörg PS: And by the way, “\placebtxrendering[criterium=all]” is not working anymore. I think I had it working before to place all entries from the BibTeX file into the publications list regardless of their actual appearance in the text as citations–which was a good way to test only the publications list’s layout. \placebtxrendering[method=dataset] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___ ___ 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 ___
Re: [NTG-context] bibliography again: “von” and “van”
Am Tue, 27 Jan 2015 21:11:03 +0100 schrieb Jörg Weger: > how would you “set up an entry properly” in a BibTeX file where you have > only one field for author/editor (serious question!)? In biblatex/biber you could setup the entries like this: @book{goethe, author={von Goethe, Johann Wolfgang}, title={Faust}, year={1775} } @book{halen, author={van Halen, Edward}, title={Title}, year={1775}, options = {useprefix=true} } Then you get "Goethe" and "van Halen". (It is not a perfect solution: assume a book from Goethe and van Halen then you would have to use braces to save the "van": author={von Goethe, Johann Wolfgang and {van Halen}, Edward}, -- Ulrike Fischer http://www.troubleshooting-tex.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Where is error in my code?
Hi, From the looks of it you are using legacy code! For one ConTeXt uses UTF you no need texansi encoding. In Mkiv all you need is \startext \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage \stoptext If you want to set font use \definefontfamily and \setbodyfont commands. regards Keith. Am 28.01.2015 um 05:45 schrieb Van Dung Tang : > > I edit 1 file metafun follow: > > \startMPenvironment > \usetypescript[times][texnansi] > \switchtobodyfont[times,10pt] > \stopMPenvironment > \startMPpage > fill fullcircle scaled 2cm withcolor red; > label(\sometxt{Cn},origin) withcolor white; > \stopMPpage > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] bibliography again: “von” and “van”
Hi Alan, Hans, As you say the treatmeant of the „particles“ are complicated. They depend on „citizenship“, period, country of title, true nobility or ennoblement, the region of a country one comes, and form of the particle (abbreviation, captilization). Practically all of this information is missing in the a normal bibliography. Sure we can try to guess some from publication date, language, etc. But, these are very in accurate, and will not give decent results. Now, I am all for making as easy as possible for the user and have a system do as much inference as possible. We could simply add all kinds of switches and coding to help this process, but in the end we end up with an over complicated format that grows into a monster! I as an old school type and database person would think it far better, to take a more pratical approach. Set up the inference rules for the names after 1920. Most of the ambiguity is gone for most of the western world to my knowledge! (I can not say much about the rest, we have not even talked about them). We can add fields or a mechanisms where the author of a bibliography can set display form, sort form etc. that are used. Yes, this does put the burden on the author, but is the cleanest and most flexible way to do it. Or implement a mechanism where the Author of the bibliography can write a SETUP/filter for the format of the author field and add a field to the format called authorfieldtype. this way. I believe this would be the ConTeXt way. regards Keith. > Am 28.01.2015 um 04:10 schrieb Alan BRASLAU : > > I have been arguing with Hans over the proper treatment of "particles", > in general. The rules vary greatly - here we are looking at a > comparison between Dutch and German practice. In French, the use often > depends on history differing before and after the revolution. In > Spanish, we have other practice. > > One solution is to make the rendering depend on the "language=" bibtex > field. But this does not work universally. With Hans, we have extended > the bibtex standard so that names can be explicitly separated, as in: > author = {particle, lastname, suffix, firstname} > This allows the author to use a free form for each component without > resorting to any bibtex trickery (like capitalization or not). How > these components are handled or rendered is not entirely worked out. > Indeed, the German practice differs from others. Thus my suggestion of > the use of the language field (or setting). > > Alan > ___ 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 ___
Re: [NTG-context] Where is error in my code?
On 1/28/2015 5:49 AM, Van Dung Tang wrote: I edit 1 file metafun with follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage After run context and recieve 1 picture with a space very very long at left my picture. if you use mkiv you can do just: \switchtobodyfont[times,10pt] \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage if you use mkii, you have to load the fonts first \startMPenvironment[global] because loading can involve all kind of actions that introduce spaces Hans Please help me find my error! Thanks ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
[NTG-context] Where is error in my code?
I edit 1 file metafun with follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage After run context and recieve 1 picture with a space very very long at left my picture. Please help me find my error! Thanks Ngu-Hanh.pdf Description: Adobe PDF document ___ 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 ___
[NTG-context] Where is error in my code?
I edit 1 file metafun follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage Ngu-Hanh.pdf Description: Adobe PDF document ___ 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 ___
Re: [NTG-context] bibliography: alignment of first hanging lines in publications list, hyphenation
On 1/28/2015 8:42 AM, Jörg Weger wrote: Attached are a MWE using plain APA and the corresponding BibTeX file. (Don’t mind the mistakes regarding series/volumes, I got that working in my personal setup that overrides plain APA.) APA style defaults with hanging indents in the publications list. The respectively hanging first lines of each entry in the publications list are not properly aligned on the left. (The indented lines are). I would like all of those first lines to start on the very left of the textfield. If I use \hyphenation to prevent e.g. names from being hyphenated those words might be driven into the right margin. Hanging punctuation doesn’t seem to work as well. Is there anything that can be done about that? Or how can the justification be switched to flush left/ragged right with hanging indents on the left? \setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}] just the settings of descriptions Greetings Jörg PS: And by the way, “\placebtxrendering[criterium=all]” is not working anymore. I think I had it working before to place all entries from the BibTeX file into the publications list regardless of their actual appearance in the text as citations–which was a good way to test only the publications list’s layout. \placebtxrendering[method=dataset] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___