[XeTeX] tabular in footnote
When I put a tabular in a footnote, the tabular often is extended outside the text area. Besides placing a newline directive after the tabular environment, is there anything I can do to prevent this behavior? That is, how can I best ensure that tabulars in a footnote get typeset completely within the text area? Here is an example: \documentclass[12pt]{book} \usepackage[xetex,a4paper,noheadfoot,nomarginpar,margin=20mm,showframe]{geometry} \begin{document}% xyz\footnote{% %\raisebox{2.5mm}{ \begin{tabular}[t]{|l|} \hline abc\\ def\\ ghj\\ klm\\ \hline \end{tabular}%\\ %}% } xyz\footnote{% %\raisebox{2.5mm}{ \begin{tabular}[t]{|l|} \hline abc\\ def\\ ghj\\ klm\\ \hline \end{tabular}%\\ %}% } \end{document}% Many thanks in advance, Dan foottbl.tex Description: TeX document foottbl.pdf Description: Adobe PDF document -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] page numbering using fancychap with Glenn option and no footer
On Sat, Dec 3, 2011 at 9:23 PM, Herbert Schulz wrote: > The \chapter command is part of the book class and is designed that way ... > If you don't want it that way (after all it's a design decision) you redefine > the \chapter command. 2011/12/3 Zdenek Wagner : > The problem with plain page style has been bothering users for decades. > That's why there used to be \fancyplain in the fancyhdr package.years Thank you Herbert and Zdenek for your suggestions. So it kind of comes down to either defining a new class, redefining \chapter, or redefining the plain style. At least for now, I opt for redefining the plain style using fancyhdr's \fancypagestyle command. For example, the below code seems to do what I want: \documentclass{book} \usepackage[Glenn]{fncychap} \usepackage{fancyhdr} \usepackage{geometry} \geometry{ xetex,paper=a4paper, centering,twoside, includehead,nofoot, margin=15mm, nomarginpar, showframe } \fancyhf{}% \fancyhf[HOR,HEL]{page \thepage} \fancypagestyle{plain}{% reference: fancyhdr.pdf version 3.1 pages 7-8 \fancyhf{}% clear all headers and footers \renewcommand{\headrulewidth}{0pt}% remove head rule \renewcommand{\footrulewidth}{0pt}% remove foot rule } %\pagestyle{headings} \begin{document}% \chapter{This Chapter} %\thispagestyle{empty} \ldots first page \ldots \clearpage \ldots second page \ldots \clearpage \ldots third page \ldots \clearpage \ldots forth page \ldots \clearpage \ldots fifth page \ldots \clearpage \ldots sixth page \ldots \clearpage \ldots seventh page \ldots \clearpage \ldots eigth page \ldots \end{document}% Thank you again, Dan 2011/12/3 Zdenek Wagner : > 2011/12/3 Daniel Greenhoe : >> Thank you for your fast reply. >> >> 2011/12/3 Zdenek Wagner : >>> It is described in LaTeX documentation that \chapter >>> contains implicitely \thispagestyle{plain} >> >> Then isn't this a bug with LaTeX's \chapter command? For example, this >> has the same problem (no fancychap, no fancyhdr): >> >> \documentclass{book} >> \usepackage{geometry} >> \geometry{ >> xetex,paper=a4paper, >> centering,twoside, >> includehead,nofoot, >> margin=15mm, >> nomarginpar, >> showframe >> } >> \pagestyle{headings} >> \begin{document}% >> \chapter{This Chapter} >> \ldots first page \ldots >> \clearpage \ldots second page \ldots >> \clearpage \ldots third page \ldots >> \end{document}% >> >> Can't the \chapter command know that there is no footer and that the >> default page style is "headings"? If it can know these things, why >> does it still insist on reverting to pagestyle{plain} and putting a >> page number outside the legitimate printable area? >> > It can't. There is no way how to communicate between the page style > mechanism and the sectioning macros. \chapter could measure \footskip > but zero value does not mean that a footer does not exist and positive > value does not mean that a footer exists. It would be necessary to > find the current definition of \@oddfoot and analyze it but it may be > a complex macro and if you decied to implement a kind of AI in LaTeX > macros just to know whether a footer is uset to typeset anything > related to the chapter, your LaTeX compilation will run for ages. The > LaTeX documentation (Leslie Lamport's book, Frank Mittelbach et al. > LaTeX Companion, classes documentation) always informed that \chapter > issues \thispagestyle{plain} and the user is supposed to cope with it. > \chapter even does not know what the plain style is, nobody says that > it contains a footer. The problem with plain page style has been > bothering users for decades. That's why there used to be \fancyplain > in the fancyhdr package. I stopped using this package some 15 years > ago but hopefully this feature is retained. The fansyhdr package > always was well documented, it should be mentioned in the manual. > >> Is there really no way I can blame this on something besides myself? >> >> Dan >> >> 2011/12/3 Zdenek Wagner : >>> 2011/12/3 Daniel Greenhoe : When using the fancychap package with the "Glenn" option and *no footer*, there seems to be a minor problem: When starting a new chapter, the package still attempts to put a page number in the footer even though there is supposed to be no footer. Besides the brute-force solution of placing "\thispagestyle{empty}" with every chapter declaration (or an equivalent "\newchapter" macro solution), is there any more "elegant" solution to the problem? Shouldn't this be considered as a bug in the fancychap code? >>> I have looked at your code and briefly at fncychap. As I can see, >>> fncychap dos not do anything with headers and footer, you do it with >>> fancyhdr. How can fncychap know about other packages? It is described >>> in LaTeX documentation that \chapter contains implicitely >>> \thispagestyle{plain}, thus it cannot be considered a bug that the >>> feature is preserved in a package. You can only submit a feature >>> request of adding h
Re: [XeTeX] page numbering using fancychap with Glenn option and no footer
2011/12/3 Daniel Greenhoe : > Thank you for your fast reply. > > 2011/12/3 Zdenek Wagner : >> It is described in LaTeX documentation that \chapter >> contains implicitely \thispagestyle{plain} > > Then isn't this a bug with LaTeX's \chapter command? For example, this > has the same problem (no fancychap, no fancyhdr): > > \documentclass{book} > \usepackage{geometry} > \geometry{ > xetex,paper=a4paper, > centering,twoside, > includehead,nofoot, > margin=15mm, > nomarginpar, > showframe > } > \pagestyle{headings} > \begin{document}% > \chapter{This Chapter} > \ldots first page \ldots > \clearpage \ldots second page \ldots > \clearpage \ldots third page \ldots > \end{document}% > > Can't the \chapter command know that there is no footer and that the > default page style is "headings"? If it can know these things, why > does it still insist on reverting to pagestyle{plain} and putting a > page number outside the legitimate printable area? > It can't. There is no way how to communicate between the page style mechanism and the sectioning macros. \chapter could measure \footskip but zero value does not mean that a footer does not exist and positive value does not mean that a footer exists. It would be necessary to find the current definition of \@oddfoot and analyze it but it may be a complex macro and if you decied to implement a kind of AI in LaTeX macros just to know whether a footer is uset to typeset anything related to the chapter, your LaTeX compilation will run for ages. The LaTeX documentation (Leslie Lamport's book, Frank Mittelbach et al. LaTeX Companion, classes documentation) always informed that \chapter issues \thispagestyle{plain} and the user is supposed to cope with it. \chapter even does not know what the plain style is, nobody says that it contains a footer. The problem with plain page style has been bothering users for decades. That's why there used to be \fancyplain in the fancyhdr package. I stopped using this package some 15 years ago but hopefully this feature is retained. The fansyhdr package always was well documented, it should be mentioned in the manual. > Is there really no way I can blame this on something besides myself? > > Dan > > 2011/12/3 Zdenek Wagner : >> 2011/12/3 Daniel Greenhoe : >>> When using the fancychap package with the "Glenn" option and *no >>> footer*, there seems to be a minor problem: >>> When starting a new chapter, the package still attempts to put a page >>> number in the footer even though there is supposed to be no footer. >>> >>> Besides the brute-force solution of placing "\thispagestyle{empty}" >>> with every chapter declaration (or an equivalent "\newchapter" macro >>> solution), is there any more "elegant" solution to the problem? >>> Shouldn't this be considered as a bug in the fancychap code? >>> >> I have looked at your code and briefly at fncychap. As I can see, >> fncychap dos not do anything with headers and footer, you do it with >> fancyhdr. How can fncychap know about other packages? It is described >> in LaTeX documentation that \chapter contains implicitely >> \thispagestyle{plain}, thus it cannot be considered a bug that the >> feature is preserved in a package. You can only submit a feature >> request of adding header.footer definition to fncychap. >> >>> Here is an example (see attachments also): >>> >>> \documentclass{book} >>> \usepackage[Glenn]{fncychap} >>> \usepackage{fancyhdr} >>> \usepackage{geometry} >>> \geometry{ >>> xetex,paper=a4paper, >>> centering,twoside, >>> includehead,nofoot, >>> margin=15mm, >>> nomarginpar, >>> showframe >>> } >>> \fancyhf[HER,HOL]{} >>> \fancyhf[HOC,HEC]{} >>> \fancyhf[HOR,HEL]{page \thepage} >>> \fancyhf[FOL,FER]{} >>> \fancyhf[FOC,FEC]{} >>> \fancyhf[FOR,FEL]{} >>> \begin{document}% >>> \chapter{This Chapter} >>> %\thispagestyle{empty} >>> \ldots first page \ldots >>> \clearpage \ldots second page \ldots >>> \clearpage \ldots third page \ldots >>> \clearpage \ldots forth page \ldots >>> \clearpage \ldots fifth page \ldots >>> \clearpage \ldots sixth page \ldots >>> \clearpage \ldots seventh page \ldots >>> \clearpage \ldots eigth page \ldots >>> \end{document}% >>> >>> Many thanks in advance, >>> Dan >>> >>> >>> >>> -- >>> Subscriptions, Archive, and List information, etc.: >>> http://tug.org/mailman/listinfo/xetex >>> >> >> >> >> -- >> Zdeněk Wagner >> http://hroch486.icpf.cas.cz/wagner/ >> http://icebearsoft.euweb.cz >> >> >> >> -- >> Subscriptions, Archive, and List information, etc.: >> http://tug.org/mailman/listinfo/xetex > > > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz -- Subscriptions, Archive, and List information, etc.: http://
Re: [XeTeX] Diacritics in color
On Sat, Dec 03, 2011 at 08:45:24AM +0200, Tobias Schoel wrote: > > > On 02.12.2011 21:48, Ross Moore wrote: > >Hi Tobias, > > > > > >On 03/12/2011, at 6:06, Tobias Schoel wrote: > > > >>As a teacher I can think of some more Applications. Of course, these are > >>pedagogical: > >> > >>Teaching scripts to beginners (learning to write a primary school, learning > >>to write in a different script when learning another language (or even in > >>the same language: Mongol?): > >> > >>You might want to color single parts of a glyph in order to highlight them. > >>So, for example in a handwritten (see > >>http://de.wikipedia.org/wiki/Schulausgangsschrift or english equivalents I > >>haven't found in the time) "a" the beginning or end-strokes might be > >>colored. > > > >Yes, but are these examples really requiring parts of the same whole > >character coloured differently? > > > >Presuming that the font did allow access to individual glyphs, as if > >separate characters, then would not all meaningful aspects be equally well > >(if not better) encoded by an overlay? > The result would be mostly the same. I don't know if some software > might treat a partially colored glyph and two overlaid glyphs > distuinguishably differently. > > Are overlaids encoded in a font and if yes, how are they accessible > via XeTeX? Dunno about XeTeX, but in ConTeXt (when used with LuaTeX), you can have a sort of glyph color scheme that says glyph X takes color Y whenever it appears in the document (where X is glyph name whether it is encoded or not), if one wants to color, say the horizontal stroke of A, the font can be built where A is first decomposed in the Lambda-like part and the horizontal stroke, and then positioned together by some glyph positioning rule (or even using negative side bearing for such a simple case.) Someone can right something like that for LaTeX I think, but you would still need LuaTeX (unless someone extends XeTeX of course.) Regards, Khaled -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] page numbering using fancychap with Glenn option and no footer
On Dec 3, 2011, at 7:02 AM, Daniel Greenhoe wrote: > Thank you for your fast reply. > > 2011/12/3 Zdenek Wagner : >> It is described in LaTeX documentation that \chapter >> contains implicitely \thispagestyle{plain} > > Then isn't this a bug with LaTeX's \chapter command? For example, this > has the same problem (no fancychap, no fancyhdr): > > \documentclass{book} > \usepackage{geometry} > \geometry{ > xetex,paper=a4paper, > centering,twoside, > includehead,nofoot, > margin=15mm, > nomarginpar, > showframe > } > \pagestyle{headings} > \begin{document}% > \chapter{This Chapter} > \ldots first page \ldots > \clearpage \ldots second page \ldots > \clearpage \ldots third page \ldots > \end{document}% > > Can't the \chapter command know that there is no footer and that the > default page style is "headings"? If it can know these things, why > does it still insist on reverting to pagestyle{plain} and putting a > page number outside the legitimate printable area? > > Is there really no way I can blame this on something besides myself? > > Dan > > 2011/12/3 Zdenek Wagner : >> 2011/12/3 Daniel Greenhoe : >>> When using the fancychap package with the "Glenn" option and *no >>> footer*, there seems to be a minor problem: >>> When starting a new chapter, the package still attempts to put a page >>> number in the footer even though there is supposed to be no footer. >>> >>> Besides the brute-force solution of placing "\thispagestyle{empty}" >>> with every chapter declaration (or an equivalent "\newchapter" macro >>> solution), is there any more "elegant" solution to the problem? >>> Shouldn't this be considered as a bug in the fancychap code? >>> >> I have looked at your code and briefly at fncychap. As I can see, >> fncychap dos not do anything with headers and footer, you do it with >> fancyhdr. How can fncychap know about other packages? It is described >> in LaTeX documentation that \chapter contains implicitely >> \thispagestyle{plain}, thus it cannot be considered a bug that the >> feature is preserved in a package. You can only submit a feature >> request of adding header.footer definition to fncychap. >> >>> Here is an example (see attachments also): >>> >>> \documentclass{book} >>> \usepackage[Glenn]{fncychap} >>> \usepackage{fancyhdr} >>> \usepackage{geometry} >>> \geometry{ >>> xetex,paper=a4paper, >>> centering,twoside, >>> includehead,nofoot, >>> margin=15mm, >>> nomarginpar, >>> showframe >>> } >>> \fancyhf[HER,HOL]{} >>> \fancyhf[HOC,HEC]{} >>> \fancyhf[HOR,HEL]{page \thepage} >>> \fancyhf[FOL,FER]{} >>> \fancyhf[FOC,FEC]{} >>> \fancyhf[FOR,FEL]{} >>> \begin{document}% >>> \chapter{This Chapter} >>> %\thispagestyle{empty} >>> \ldots first page \ldots >>> \clearpage \ldots second page \ldots >>> \clearpage \ldots third page \ldots >>> \clearpage \ldots forth page \ldots >>> \clearpage \ldots fifth page \ldots >>> \clearpage \ldots sixth page \ldots >>> \clearpage \ldots seventh page \ldots >>> \clearpage \ldots eigth page \ldots >>> \end{document}% >>> >>> Many thanks in advance, >>> Dan Howdy, The \chapter command is part of the book class and is designed that way so that there are no headers on the page with the chapter. If you don't want it that way (after all it's a design decision) you redefine the \chapter command. Packages are designed to change the way a class operates so the class should know nothing about subsequently loaded packages. Good Luck, Herb Schulz (herbs at wideopenwest dot com) -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] page numbering using fancychap with Glenn option and no footer
Thank you for your fast reply. 2011/12/3 Zdenek Wagner : > It is described in LaTeX documentation that \chapter > contains implicitely \thispagestyle{plain} Then isn't this a bug with LaTeX's \chapter command? For example, this has the same problem (no fancychap, no fancyhdr): \documentclass{book} \usepackage{geometry} \geometry{ xetex,paper=a4paper, centering,twoside, includehead,nofoot, margin=15mm, nomarginpar, showframe } \pagestyle{headings} \begin{document}% \chapter{This Chapter} \ldots first page \ldots \clearpage \ldots second page \ldots \clearpage \ldots third page \ldots \end{document}% Can't the \chapter command know that there is no footer and that the default page style is "headings"? If it can know these things, why does it still insist on reverting to pagestyle{plain} and putting a page number outside the legitimate printable area? Is there really no way I can blame this on something besides myself? Dan 2011/12/3 Zdenek Wagner : > 2011/12/3 Daniel Greenhoe : >> When using the fancychap package with the "Glenn" option and *no >> footer*, there seems to be a minor problem: >> When starting a new chapter, the package still attempts to put a page >> number in the footer even though there is supposed to be no footer. >> >> Besides the brute-force solution of placing "\thispagestyle{empty}" >> with every chapter declaration (or an equivalent "\newchapter" macro >> solution), is there any more "elegant" solution to the problem? >> Shouldn't this be considered as a bug in the fancychap code? >> > I have looked at your code and briefly at fncychap. As I can see, > fncychap dos not do anything with headers and footer, you do it with > fancyhdr. How can fncychap know about other packages? It is described > in LaTeX documentation that \chapter contains implicitely > \thispagestyle{plain}, thus it cannot be considered a bug that the > feature is preserved in a package. You can only submit a feature > request of adding header.footer definition to fncychap. > >> Here is an example (see attachments also): >> >> \documentclass{book} >> \usepackage[Glenn]{fncychap} >> \usepackage{fancyhdr} >> \usepackage{geometry} >> \geometry{ >> xetex,paper=a4paper, >> centering,twoside, >> includehead,nofoot, >> margin=15mm, >> nomarginpar, >> showframe >> } >> \fancyhf[HER,HOL]{} >> \fancyhf[HOC,HEC]{} >> \fancyhf[HOR,HEL]{page \thepage} >> \fancyhf[FOL,FER]{} >> \fancyhf[FOC,FEC]{} >> \fancyhf[FOR,FEL]{} >> \begin{document}% >> \chapter{This Chapter} >> %\thispagestyle{empty} >> \ldots first page \ldots >> \clearpage \ldots second page \ldots >> \clearpage \ldots third page \ldots >> \clearpage \ldots forth page \ldots >> \clearpage \ldots fifth page \ldots >> \clearpage \ldots sixth page \ldots >> \clearpage \ldots seventh page \ldots >> \clearpage \ldots eigth page \ldots >> \end{document}% >> >> Many thanks in advance, >> Dan >> >> >> >> -- >> Subscriptions, Archive, and List information, etc.: >> http://tug.org/mailman/listinfo/xetex >> > > > > -- > Zdeněk Wagner > http://hroch486.icpf.cas.cz/wagner/ > http://icebearsoft.euweb.cz > > > > -- > 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] page numbering using fancychap with Glenn option and no footer
2011/12/3 Daniel Greenhoe : > When using the fancychap package with the "Glenn" option and *no > footer*, there seems to be a minor problem: > When starting a new chapter, the package still attempts to put a page > number in the footer even though there is supposed to be no footer. > > Besides the brute-force solution of placing "\thispagestyle{empty}" > with every chapter declaration (or an equivalent "\newchapter" macro > solution), is there any more "elegant" solution to the problem? > Shouldn't this be considered as a bug in the fancychap code? > I have looked at your code and briefly at fncychap. As I can see, fncychap dos not do anything with headers and footer, you do it with fancyhdr. How can fncychap know about other packages? It is described in LaTeX documentation that \chapter contains implicitely \thispagestyle{plain}, thus it cannot be considered a bug that the feature is preserved in a package. You can only submit a feature request of adding header.footer definition to fncychap. > Here is an example (see attachments also): > > \documentclass{book} > \usepackage[Glenn]{fncychap} > \usepackage{fancyhdr} > \usepackage{geometry} > \geometry{ > xetex,paper=a4paper, > centering,twoside, > includehead,nofoot, > margin=15mm, > nomarginpar, > showframe > } > \fancyhf[HER,HOL]{} > \fancyhf[HOC,HEC]{} > \fancyhf[HOR,HEL]{page \thepage} > \fancyhf[FOL,FER]{} > \fancyhf[FOC,FEC]{} > \fancyhf[FOR,FEL]{} > \begin{document}% > \chapter{This Chapter} > %\thispagestyle{empty} > \ldots first page \ldots > \clearpage \ldots second page \ldots > \clearpage \ldots third page \ldots > \clearpage \ldots forth page \ldots > \clearpage \ldots fifth page \ldots > \clearpage \ldots sixth page \ldots > \clearpage \ldots seventh page \ldots > \clearpage \ldots eigth page \ldots > \end{document}% > > Many thanks in advance, > Dan > > > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] page numbering using fancychap with Glenn option and no footer
When using the fancychap package with the "Glenn" option and *no footer*, there seems to be a minor problem: When starting a new chapter, the package still attempts to put a page number in the footer even though there is supposed to be no footer. Besides the brute-force solution of placing "\thispagestyle{empty}" with every chapter declaration (or an equivalent "\newchapter" macro solution), is there any more "elegant" solution to the problem? Shouldn't this be considered as a bug in the fancychap code? Here is an example (see attachments also): \documentclass{book} \usepackage[Glenn]{fncychap} \usepackage{fancyhdr} \usepackage{geometry} \geometry{ xetex,paper=a4paper, centering,twoside, includehead,nofoot, margin=15mm, nomarginpar, showframe } \fancyhf[HER,HOL]{} \fancyhf[HOC,HEC]{} \fancyhf[HOR,HEL]{page \thepage} \fancyhf[FOL,FER]{} \fancyhf[FOC,FEC]{} \fancyhf[FOR,FEL]{} \begin{document}% \chapter{This Chapter} %\thispagestyle{empty} \ldots first page \ldots \clearpage \ldots second page \ldots \clearpage \ldots third page \ldots \clearpage \ldots forth page \ldots \clearpage \ldots fifth page \ldots \clearpage \ldots sixth page \ldots \clearpage \ldots seventh page \ldots \clearpage \ldots eigth page \ldots \end{document}% Many thanks in advance, Dan glenn.tex Description: TeX document glenn.pdf Description: Adobe PDF document -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex