Hot answers tagged

4

It hyphenates as you have it in luatex, but xetex, like classic tex, doesn't hyphenate the first word of a paragraph, so you need a 0pt width space. Also because of some polyglossia timing? I needed to do the hyphenation exception after begin document. \documentclass[12pt]{memoir} \usepackage{polyglossia} \setdefaultlanguage{danish} % set language for ...


4

Is this about what you wanted? Note that the longest line using proportional font is not the longest line in monospace. \documentclass[11pt, openany]{memoir} \begin{document} \poemtitle*{Fluid} \settowidth{\versewidth}{puberty and menopause at once. The beard}% \hfil\begin{minipage}{\versewidth} \let\\=\linebreak \sloppy Urinalysis easily read by eye....


3

Use \\, but you need to \protect it. \documentclass[14pt,twoside,a5paper,extrafontsizes]{memoir} %Classe estilo memoir \usepackage[brazilian]{babel} %Traduz doc para português do Brasil \usepackage[utf8]{inputenc} %Reconhece acentuação \usepackage{indentfirst} %Define identação em todo primeiro parágrafo \usepackage{garamondx} %Define a nova fonte garamond \...


3

A solution with tabulary package. No need of determining the longest line (as far as the line is no longer that the text width). I added also microtype with some extreme options to alleviate the "funny spaces" (change it accordingly to your tolerance to stretching and shrinking text, funny spaces and space rivers). \documentclass{memoir} \usepackage{...


2

Could you please check whether the following helps: \documentclass[14pt,twoside,a5paper,extrafontsizes]{memoir} \usepackage[brazilian]{babel} \usepackage[utf8]{inputenc} \newcolumntype{C}{>{\footnotesize\centering\arraybackslash}p{.45\textwidth}<{~}} \begin{document} $$\extrarowheight=6pt \begin{tabular}{|C|C|} \hline 1 ...


2

You can redefine \afterchapternum to just issue a \par. By default it's defined as \renewcommand*{\afterchapternum}{% \par\centerline{\parbox{0.5in}{\hrulefill}}\par} under the thatcher chapter style, which insert the 1/2" horizontal rule. \documentclass{memoir} \usepackage{lipsum} \chapterstyle{thatcher} \renewcommand{\printchaptername}{\...


2

One bloody simple-minded way is to use \parfillskip. E.g., \documentclass[11pt, openany]{memoir} \begin{document} \poemtitle*{Fluid} \settowidth{\versewidth}{So many years of tiny pills, then suddenly} \begin{verse}[\versewidth] % here i'm just changing as little as possible (and keeping it in a group) \let\\=\par \setlength{\parskip}{0pt} \setlength{\...


2

memoir does "provide some flexibilty in the titling style of the document[;] user level commands are provided that can be changed to reconfigure the appearance resulting from \maketitle". These include \pretitle \posttitle \preauthor \postauthor \predate \postdate For updating the \title font, add it using \pretitle{<font>}. However, consider the ...


1

There is hook that you can use to insert code in footnotes: \documentclass[12pt,a4paper,italian]{memoir} \usepackage[italian]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{hyperref} \renewcommand{\makefootmarkhook}{\raggedright} \begin{document} trovate\footnote{Il progetto One Laptop Per Child si prefigge di fornire a ogni bambino,...


1

You need to add the following definition in the preamble to make the footnote content ragged right. \renewcommand{\makefootmark}[1]{\raggedright% \leavevmode \parindent \footparindent\noindent \leftskip\footmarksep\relax \advance\leftskip \footmarkwidth \null\nobreak\hskip -\leftskip\relax \makefootmarkhook\relax \footfootmark #1} I have now ...


1

Like with most sectioning commands, there is a mark associated with \book, called \bookpagemark. It's default setting is similar to \@gobble as it just prints/does nothing with its argument. You can change this to \rightmark, which will set it for the odd-side pages: \documentclass[twoside]{memoir} \usepackage{lipsum} \title{Generic Document} \...


1

This break text in the last line: \begin{tabularx}{\textwidth}{l l >{\raggedright\arraybackslash}X} ONDA & FREQUÊNCIA & EFEITO \\ Gama & 22 a 50 C/S & Estado emocional \\ Betha & 14 a 21 C/S & Estado de vigília, comum ...


1

Here is one way of doing it: \documentclass[11pt, openany]{memoir} \usepackage{changepage} \begin{document} \poemtitle*{Fluid} \let\V\hfill \begin{adjustwidth}{1in}{1in} \noindent Urinalysis \V easily \V read \V by \V eye. \V Endocrine\\ placeholder \V contraceptive. \V Medicated\\ racehorses \V often \V suffer \V catastrophic\\ breakdowns \V ...


1

You could change \renewcommand{\printchaptername}{\centering{\chapnumfont\thechapter}} to, say, \renewcommand{\printchaptername}{\centering{\chapnumfont\HUGE\thechapter}} A full MWE: \documentclass[14pt,twoside,a5paper,extrafontsizes]{memoir} \usepackage[brazilian]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{ebgaramond} %...


1

One of the (IMO) best ways to fix something like this is to make the space above \part and \chapter entries flexible, that usually solves the problem. Otherwise use the \addtocontents{toc}{\protect\newpage} \part{title} Not sure what you mean by "but I would prefer a solution, that avoid such a page break in the header" \setlength{\cftbeforepartskip}{2....



Only top voted, non community-wiki answers of a minimum length are eligible