Re: [XeTeX] Customizing footnote markers
Am Sun, 05 Jun 2011 20:27:43 +0200 schrieb Alessandro Ceschini: Sorry Phillip, but I can't find the way to post an attach here. I can't just copy all the .tex file in a mail, it's just too long! Then it is not a sensible minimal document. You have a problem with a footnote definition. To demonstrate the problem the lipsum package and a small document body should be enough: \usepackage{lipsum} \begin{document} text\footnote{\lipsum[1]} \end{document} Add to this minimal body the part of the preamble needed to reproduce the problem. Start with your footnote definitions (between \makeatletter and \makeatother). Then add if necessary other packages. -- Ulrike Fischer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Cyril Niklaus wrote: Would something like this make you happy? That's what I've been using for years. Put it in your preamble. And of course, change the parindent size to somheting you like. \makeatletter \renewcommand\@makefntext[1]{% \vspace{2pt}% \setlength\parindent{-1.8em}% \setlength\leftskip{1.8em}% \makebox[1.8em][l]{\normalfont\small\@thefnmark.}#1} \makeatother \makeatletter \def\@makefnmark{{\addfontfeatures {VerticalPosition=Superior}{\@thefnmark}}} \makeatother Off-list, I offered the following as a solution : Here you are, Alessandro : just replace everything from \usepackage{footmisc} to \begin{document} with the fragment below, then hack it until it achieves exactly what you need. ** Phil. \usepackage{footmisc} \makeatletter \long \def \@makefntext #1% {% \noindent \makebox [0pt][r]{\@thefnmark.\,}#1% } \makeatother \begin{document} -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Sorry, list : didn't realise Alessandro's last message came via the list, so the previous attachment to list was unintended. Philip Taylor -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Customizing footnote markers
As I wrote: look in frenchb.ldf to find the french settings. The definition of \@makefntext above is a simple example. Adjust it to your need. Since what I'm lacking here is indentation I tried to put together the following collage by pasting a piece of code from frenchb.ldf. \makeatletter \newdimen\parindentFFN \parindentFFN=10in \renewcommand\@makefntext[1]{% \parindentFFN\@thefnmark.~#1} \makeatother But I get the following error message: ! Illegal unit of measure (pt inserted). to be read again \unhbox Anyone knows why it doesn't work? -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Alessandro Ceschini wrote: As I wrote: look in frenchb.ldf to find the french settings. The definition of \@makefntext above is a simple example. Adjust it to your need. Since what I'm lacking here is indentation I tried to put together the following collage by pasting a piece of code from frenchb.ldf. \makeatletter \newdimen\parindentFFN \parindentFFN=10in \renewcommand\@makefntext[1]{% \parindentFFN\@thefnmark.~#1} \makeatother But I get the following error message: ! Illegal unit of measure (pt inserted). to be read again \unhbox Anyone knows why it doesn't work? Well, it looks to me as if the expansion of @makefntext tries to perform an assignment to \parindentFFN (even though you omitted an explicit assignment operator); surely this is not what you intended ? Philip Taylor -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Customizing footnote markers
Well, it looks to me as if the expansion of @makefntext tries to perform an assignment to \parindentFFN (even though you omitted an explicit assignment operator); surely this is not what you intended ? I intended to have an indentation before the footnote marker. -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Alessandro Ceschini wrote: Well, it looks to me as if the expansion of @makefntext tries to perform an assignment to \parindentFFN (even though you omitted an explicit assignment operator); surely this is not what you intended ? I intended to have an indentation before the footnote marker. Ah, but what you have, rather than an indentation, is the intended /dimension /of the intendation (ten inches, in this case). If you want this dimension to be used to effect an indentation, then you need to add a command to cause an indentation (of specified dimension) to take place. I don't speak LaTeX, but you might consider (e.g.) \renewcommand \@makefntext [1]% {% \leavevmode \hbox to \parindentFFN {}\@thefnmark.~#1% } or something along those lines. Philip Taylor -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
I'd be curious to know what kind of a book could support a ten-inch indentation before the footnote-cue... John - Original Message - From: Philip TAYLOR (Webmaster, Ret'd) To: Customizing footnote markers Cc: Alessandro Ceschini Sent: 05 June 2011 16:21 Subject: Re: [XeTeX] Customizing footnote markers Alessandro Ceschini wrote: Well, it looks to me as if the expansion of @makefntext tries to perform an assignment to \parindentFFN (even though you omitted an explicit assignment operator); surely this is not what you intended ? I intended to have an indentation before the footnote marker. Ah, but what you have, rather than an indentation, is the intended dimension of the intendation (ten inches, in this case). If you want this dimension to be used to effect an indentation, then you need to add a command to cause an indentation (of specified dimension) to take place. I don't speak LaTeX, but you might consider (e.g.) \renewcommand \@makefntext [1]% {% \leavevmode \hbox to \parindentFFN {}\@thefnmark.~#1% } or something along those lines. Philip Taylor -- -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Customizing footnote markers
So should it look like this: \makeatletter \newdimen\parindentFFN \parindentFFN=10in \renewcommand \@makefntext [1]% {% \leavevmode \hbox to \parindentFFN {}\@thefnmark.~#1% } \makeatother It doesn't work, anyhow. -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
I'm sure '10in' is a mistake - rather 10pt? And try replacing \hbox to \parindentFFN {} with \hbox to \parindentFFN{\hfill} (no space after FFN). I would also replace \@thefnmark.~#1 with \@thefnmark.\kern 0.5em #1 Otherwise the ~ will give a variable space after each footnote-cue, whereas it will look much better if there is a consistent space between each cue and the text of the footnote (it doesn't have to be 0.5em: you could say 5pt, or whatever you think will look best). But I don't speak LaTeX either, and you may be doing something else wrong! John - Original Message - From: Alessandro Ceschini alessandroceschini...@gmail.com To: Customizing footnote markers xetex@tug.org Sent: 05 June 2011 16:32 Subject: [XeTeX] Customizing footnote markers So should it look like this: \makeatletter \newdimen\parindentFFN \parindentFFN=10in \renewcommand \@makefntext [1]% {% \leavevmode \hbox to \parindentFFN {}\@thefnmark.~#1% } \makeatother It doesn't work, anyhow. -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Forgive my bluntness, but It doesn't work, anyhow. doesn't seem calculated to encourage further help. Perhaps if you were to tell us in what way it doesn't work, and and/or attach a minimal source document that demonstrates the problem, there would be a greater probability of someone getting to the root of your problem. Philip Taylor -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
John Was wrote: I'm sure '10in' is a mistake - rather 10pt? And try replacing \hbox to \parindentFFN {} with \hbox to \parindentFFN{\hfill} Why, John ? An \hbox can be empty, surely ? (no space after FFN). Again, why, John ? \parindentFFN is a control word, and therefore soaks up the following space. ** Phil. -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
That huge overfull \hbox is surely because you have specified 10 inches as the indentation. Try 10pt instead of 10in (leaving everything else as given), and see what happens. John - Original Message - From: Alessandro Ceschini alessandroceschini...@gmail.com To: Customizing footnote markers xetex@tug.org Sent: 05 June 2011 16:59 Subject: [XeTeX] Customizing footnote markers doesn't seem calculated to encourage further help. Perhaps if you were to tell us in what way it doesn't work, and and/or attach a minimal source document that demonstrates the problem, there would be a greater probability of someone getting to the root of your problem. I'm sorry, Phillip, the problem is that I don't know much about the \makeatletter programming environment. I just deal with normal Latex commands, so that's really Arabic for me. The only thing I can tell you is I get loads of warning messages like this: Overfull \hbox (381.70668pt too wide) in paragraph at lines 641--641 [][]\EU1/GaramondPremierPro(0)/m/n/10 67. []MIDALI| [43] And no indentation to be seen, actually numbers have all but disappeared and the text appears to be cut. -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Alessandro Ceschini wrote: I'm sorry, Phillip, the problem is that I don't know much about the \makeatletter programming environment. I just deal with normal Latex commands, so that's really Arabic for me. The only thing I can tell you is I get loads of warning messages like this: Overfull \hbox (381.70668pt too wide) in paragraph at lines 641--641 [][]\EU1/GaramondPremierPro(0)/m/n/10 67. []MIDALI| [43] And no indentation to be seen, actually numbers have all but disappeared and the text appears to be cut. To be honest, I wouldn't worry about the \makeatletter nonsense; it really isn't at the heart of your problem. If you are getting an \hbox that is overfull by over 381pt (5.27), the numbers have all but disappeared, and the text appears to be cut, then John Was's suggestion that an indentation of ten inches might not have been what you intended may well be the cause. Post your source (or put it on a web server and post the URL) and someone will without doubt come to your aid. Philip Taylor -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Customizing footnote markers
To be honest, I wouldn't worry about the \makeatletter nonsense; it really isn't at the heart of your problem. If you are getting an \hbox that is overfull by over 381pt (5.27), the numbers have all but disappeared, and the text appears to be cut, then John Was's suggestion that an indentation of ten inches might not have been what you intended may well be the cause. My source is frenchb.ldf! Please take a look at this piece of code from frenchb.ldf dealing with footnotes: \newcommand*{\dotFFN}{.} \newcommand*{\kernFFN}{\kern .5em} \newdimen\parindentFFN \parindentFFN=10in \def\ftnISsymbol{\@fnsymbol\c@footnote} \long\def\@makefntextFB#1{\ifx\thefootnote\ftnISsymbol \@makefntextORI{#1}% \else \parindent=\parindentFFN \rule\z@\footnotesep \setbox\@tempboxa\hbox{\@thefnmark}% \ifdim\wd\@tempboxa\z@ \llap{\@thefnmark}\dotFFN\kernFFN \fi #1 \fi}% \AtBeginDocument{\@ifpackageloaded{bigfoot}{}% {\ifdim\parindentFFN10in \else \parindentFFN=\parindent \ifdim\parindentFFN1.5em\parindentFFN=1.5em\fi \fi \let\@makefntextORI\@makefntext \long\def\@makefntext#1{% \ifFBFrenchFootnotes \@makefntextFB{#1}% \else \@makefntextORI{#1}% \fi}% }% } -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
I can't take time to absorb that, but it looks as if it wants to force the indentation at the start of a footnote to be 1.5em, which ought to be OK (rather more than I would have, but no matter just now). Just before the first line of your text (after you've loaded all your packages and so on), try \global\parindentFFN=1.5em and see what happens. Whatever is going on, it looks as if with your current coding the program is attempting to put a giant amount of space (surely wider than your actual text width) before the footnote cue, and that is creating chaos. If that is no good, I think I'll have to bow out of this thread - sorry! John - Original Message - From: Alessandro Ceschini alessandroceschini...@gmail.com To: Customizing footnote markers xetex@tug.org Sent: 05 June 2011 17:25 Subject: [XeTeX] Customizing footnote markers To be honest, I wouldn't worry about the \makeatletter nonsense; it really isn't at the heart of your problem. If you are getting an \hbox that is overfull by over 381pt (5.27), the numbers have all but disappeared, and the text appears to be cut, then John Was's suggestion that an indentation of ten inches might not have been what you intended may well be the cause. My source is frenchb.ldf! Please take a look at this piece of code from frenchb.ldf dealing with footnotes: \newcommand*{\dotFFN}{.} \newcommand*{\kernFFN}{\kern .5em} \newdimen\parindentFFN \parindentFFN=10in \def\ftnISsymbol{\@fnsymbol\c@footnote} \long\def\@makefntextFB#1{\ifx\thefootnote\ftnISsymbol \@makefntextORI{#1}% \else \parindent=\parindentFFN \rule\z@\footnotesep \setbox\@tempboxa\hbox{\@thefnmark}% \ifdim\wd\@tempboxa\z@ \llap{\@thefnmark}\dotFFN\kernFFN \fi #1 \fi}% \AtBeginDocument{\@ifpackageloaded{bigfoot}{}% {\ifdim\parindentFFN10in \else \parindentFFN=\parindent \ifdim\parindentFFN1.5em\parindentFFN=1.5em\fi \fi \let\@makefntextORI\@makefntext \long\def\@makefntext#1{% \ifFBFrenchFootnotes \@makefntextFB{#1}% \else \@makefntextORI{#1}% \fi}% }% } -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Alessandro Ceschini wrote: My source is frenchb.ldf! Please take a look at this piece of code from frenchb.ldf dealing with footnotes: OK, two comments. 1) The use of ten inches appears to be as a sentinel, rather than the actual value intended for real use. 2) When I suggested you post your source, I mean by source the document you are trying to typeset, not one or more of the sources you consulted when trying to write your document. Philip Taylor -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Customizing footnote markers
Will the prologue suffice? \documentclass[a4paper, 12pt, openany, draft]{book} \usepackage{fontspec} \defaultfontfeatures{Mapping=tex-text} \setmainfont{Garamond Premier Pro} \usepackage{polyglossia} \setmainlanguage{french} \setotherlanguages{dutch, english, german, latin, italian, spanish} \setotherlanguage[variant=ancient]{greek} \usepackage{xunicode} \usepackage{xltxtra} \usepackage{bookmark} \setcounter{secnumdepth}{0} \raggedbottom \usepackage{soul} \newfontfamily\greekfont[Script=Greek]{Garamond Premier Pro} \newcommand{\og}{\guillemotleft} \newcommand{\fg}{\guillemotright} \usepackage{enumitem} \setenumerate{nolistsep} \setitemize{nolistsep, label=$-$} \usepackage{footmisc} -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
By all means, Alessandro : ZIP all the files and send them direct as an attachment. Philip Taylor Alessandro Ceschini wrote: Sorry Phillip, but I can't find the way to post an attach here. I can't just copy all the .tex file in a mail, it's just too long! But, if you don't mind, I could send it to you via your mail. Obviously, if your enthusiasm has recovered, of course. -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Would something like this make you happy? That's what I've been using for years. Put it in your preamble. And of course, change the parindent size to somheting you like. \makeatletter \renewcommand\@makefntext[1]{% \vspace{2pt}% \setlength\parindent{-1.8em}% \setlength\leftskip{1.8em}% \makebox[1.8em][l]{\normalfont\small\@thefnmark.}#1} \makeatother \makeatletter \def\@makefnmark{{\addfontfeatures {VerticalPosition=Superior}{\@thefnmark}}} \makeatother -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 24/05/2011 17:05, Alessandro Ceschini a écrit : Hello everybody, In Babel, if I set the main language to French, I get French-style footnote markers, that is: 1. Note text (No superscript number and followed by a point). But in Polyglossia this style isn't activated by default. Is there a way to activate it? The package footmisc doesn't seem to offer such an option. No, it doesn't! And it not the only lack of feature of polyglossia with French language. I think that we have to wait for somtimes... Why don't use babel with xelatex, it works without any problem (as far I could test it) with french/frenchb/francais - -- François Patte UFR de mathématiques et informatique Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)1 8394 5849 http://www.math-info.univ-paris5.fr/~patte -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAk3cpQYACgkQdE6C2dhV2JVs+QCfYhDoZXgpy/FgNVc2+3VPLY4s PY0An3BGuFqs4zfF0I1PsCRNM8A3gaAG =wGUv -END PGP SIGNATURE- -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Customizing footnote markers
Yes, of course, there are other deficiencies, but these are ones I managed to sort out: - French-style quotes: \newcommand{\og}{\guillemotleft} \newcommand{\fg}{\guillemotright} - French-style lists: \usepackage{enumitem} \setenumerate{nolistsep} \setitemize{nolistsep, label=$-$} - French-style number sign: n\textsuperscript{o} I cannot use babel in this case for I need Classical Greek with a Unicode font in my text, so I'm forced to rely on polyglossia and XeTeX. So, back to my question: Can footmisc be of use here? -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Am Wed, 25 May 2011 11:22:15 +0200 schrieb Alessandro Ceschini: Yes, of course, there are other deficiencies, but these are ones I managed to sort out: - French-style quotes: \newcommand{\og}{\guillemotleft} \newcommand{\fg}{\guillemotright} - French-style lists: \usepackage{enumitem} \setenumerate{nolistsep} \setitemize{nolistsep, label=$-$} - French-style number sign: n\textsuperscript{o} I cannot use babel in this case for I need Classical Greek with a Unicode font in my text, so I'm forced to rely on polyglossia and XeTeX. You could try to mix babel and polyglossia: \documentclass[a4paper]{article} \usepackage[french]{babel} \usepackage{polyglossia} \setmainlanguage{french} \setotherlanguage{greek} \begin{document} abc\footnote{blub} \end{document} So, back to my question: Can footmisc be of use here? No. The KOMA-classes have commands to change the footnote format. With the standard classes you will have to redefine \@makefntext e.g. (look in frenchb.ldf to find the french settings): \documentclass[a4paper]{article} \usepackage{polyglossia,lipsum} \setmainlanguage{french} \setotherlanguage{greek} \makeatletter \renewcommand\@makefntext[1]{% \noindent\@thefnmark.~#1} \makeatother \begin{document} abc\footnote{\lipsum[1]} \end{document} -- Ulrike Fischer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Am Wed, 25 May 2011 16:08:18 +0200 schrieb Alessandro Ceschini: You could try to mix babel and polyglossia: \documentclass[a4paper]{article} \usepackage[french]{babel} \usepackage{polyglossia} \setmainlanguage{french} \setotherlanguage{greek} \begin{document} abc\footnote{blub} \end{document} But what if I have other secondary languages, namely: Dutch, English, Italian, German and Latin ? Should I load them via polyglossia or babel? As a rule of thumb I would say: every language which uses a non-western script (greek, russian, arabic etc) should/can only be used through polyglossia. For the rest try babel if you are missing (like in french) features. Btw: When I say try I meant it. I have no idea if the babel/polyglossia will clash somewhere. Also frenchb of babel is a rather complicated language style and even sometimes gives problems with other babel languages. -- Ulrike Fischer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Customizing footnote markers
I've been trying to get polyglossia and babel to coexist all the afternoon long: seven languages is simply too much! \documentclass[a4paper]{article} \usepackage{polyglossia,lipsum} \setmainlanguage{french} \setotherlanguage{greek} \makeatletter \renewcommand\@makefntext[1]{% \noindent\@thefnmark.~#1} \makeatother \begin{document} abc\footnote{\lipsum[1]} \end{document} This works fine, except that it completely does away with the original indentation of footnotes, which I wish to conserve. Actually I'm under the impression that French footnotes do require even more indentation than normal ones. -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Customizing footnote markers
Am Wed, 25 May 2011 21:03:28 +0200 schrieb Alessandro Ceschini: \documentclass[a4paper]{article} \usepackage{polyglossia,lipsum} \setmainlanguage{french} \setotherlanguage{greek} \makeatletter \renewcommand\@makefntext[1]{% \noindent\@thefnmark.~#1} \makeatother \begin{document} abc\footnote{\lipsum[1]} \end{document} This works fine, except that it completely does away with the original indentation of footnotes, which I wish to conserve. Actually I'm under the impression that French footnotes do require even more indentation than normal ones. As I wrote: look in frenchb.ldf to find the french settings. The definition of \@makefntext above is a simple example. Adjust it to your need. -- Ulrike Fischer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Customizing footnote markers
Hello everybody, In Babel, if I set the main language to French, I get French-style footnote markers, that is: 1. Note text (No superscript number and followed by a point). But in Polyglossia this style isn't activated by default. Is there a way to activate it? The package footmisc doesn't seem to offer such an option. Thank you for helping me, -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex