Tag Info

Hot answers tagged

4

This can be done with titlesec, as one of the tags in the question suggests, but I wouldn't recommend this due to some know incompatibilities; see About memoir and titlesec incompatibility, for example. Here's one possibility using memoir's methods only: \documentclass{memoir} \usepackage{ulem} \usepackage{lipsum} ...


4

Summarizing and combining the comments that have been posted so far, the following setup may work for you. It assumes that you're using pdfLaTeX and that you have a reasonably current TeX distribution. (If you use XeLaTeX or LuaLaTeX, different instructions would apply for the font-loading portion of the preamble.) There's one crucial piece of information ...


3

I traced down the problem to the \RL commands in the sentence \noindent Si anteponemos \RL{ا}, \RL{مَا}, o \RL{مَنْ} a \RL{هَذَا} , se convierte en una pregunta: Grouping those commands, as in \noindent Si anteponemos {\RL{ا}}, {\RL{مَا}}, o {\RL{مَنْ}} a {\RL{هَذَا}} , se convierte en una pregunta: solves the problem: ...


3

stackexchange uses google prettify https://code.google.com/p/google-code-prettify/wiki/GettingStarted to format code blocks. It can't be too hard, if you format your code with that first to convert the generated html markup back to tex, but I don't know of an existing package that does it


3

Here's one possibility: Simply comment out a spurious blank space after \end{tikzpicture}. I used the explicit option for titlesec and then used two side-by-syde \nodes of predefined width; one for the image, the other one for #1 (the actual title). I also defined a variant using numberless for starred chapters (such as the table of contents, the list of ...


2

With the explicit option of titlesec, it is easy: \documentclass[french]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \title{Titre de la thèse} \author{moi} \date{\today} \usepackage{babel} \usepackage{lipsum} \usepackage[top = 2cm, left = 2cm, right = 2cm, bottom = 2cm, head = 14pt, headsep = .5cm]{geometry} ...


2

Hmm not sure I like the result but... \documentclass{article} \usepackage{amsmath} % merge \overbrace and \underbrace \makeatletter \def\widebreve#1{\mathop{\vbox{\m@th\ialign{##\crcr\noalign{\kern3\p@}% \brevefill\crcr\noalign{\kern3\p@\nointerlineskip}% $\hfil\displaystyle{#1}\hfil$\crcr}}}\limits} \def\brevefill{$\m@th ...


2

There are also issues like the following: In Czech typography, one-letter prepositions and conjuctions (v, s, z, k, o, u, a, i) should not be at the end of a line. Tildes are added automatically by the encxvlna package by Zdeněk Wagner and Petr Olšák. It needs the encTeX extension. Also in Czech typography, for a word containing hyphen it is ideal to ...


2

You need to use \lr{} to write left-to-right in a persian document that is right-to-left in nature. \documentclass[12pt]{article} \usepackage{xepersian} \begin{document} \section{مقدمه:} \section{ منابع} یکی از روش‌های نگارش چپ به راست استفاده از \lr{\textbackslash lr\{\}} می‌باشد. به عنوان مثال \lr{\{BELLARE , M , ...\}} \end{document} If your ...


2

You have several options here: you can use the top, left, bottom, right keys (and perhaps also boxsep) to control the space between text and frame on each of the sides or you could use the size key to get some predefined sizes (the accepted values minimal, tight, fbox, small, title, and normal and their effect are illustrated in my example code): ...


2

If it is only one word inside the box, you may use tikz straight away. Change inner sep values as you wish. \documentclass{article} \usepackage{tikz} \newcommand{\mybox}[1]{\tikz[baseline={(a.base)}]\node[draw=blue,rounded corners=0.5ex,fill=red!40!white,inner sep=1pt](a){#1};} \begin{document} \mybox{hello} my world \mybox{EQUAL} \end{document}


2

The “explicit space” symbols are due to the setting showstringspaces=true that's the default with lstlisting. The IEEEtran class knows just two types of captions, those for tables and those for figures. If an environment is not table, the class assumes the caption is for a figure, so it adjusts the spacing for it being placed below the picture. My ...


1

\part is usually defined in the document class. Class article \thispagestyle{empty} works: \documentclass{article} \begin{document} \part{Beginning} \thispagestyle{empty} \end{document} Classes report and book Class book (similar report) defines \part the following way: \newcommand\part{% \if@openright \cleardoublepage \else \clearpage ...


1

This is because the Java language in listings has morestring=[b]",% (this can be found in the file lstlang1.sty) to avoid this, you can use deletestring, as in: deletestring=[b]", Since the language also sets morestring=[b]',% you might also be interested in deletestring=[b]',% to avoid the same phenomenon with single quotes. I cannot reproduce ...



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