Tag Info

Hot answers tagged

7

I think that using the sectsty package is simpler. Just add the following lines to your preamble \usepackage{sectsty} \renewcommand{\thechapter}{\Roman{chapter}} \chapterfont{\centering\MakeUppercase} MWE \documentclass[12pt]{book} \pagestyle{plain} \usepackage{amssymb,latexsym} \usepackage{amsmath} \usepackage{amsthm} \usepackage{sectsty} ...


6

Your question could be clearer but I think you want \noindent \hspace*{2em}% \fbox{\parbox{\dimexpr\textwidth-4em-2\fboxsep-2\fboxrule\relax}% {Paragraph text}} Or perhaps simpler \begin{center} \fbox{\parbox{\dimexpr\textwidth-4em-2\fboxsep-2\fboxrule\relax}% {Paragraph text}} \end{center}


5

With swiss army knife tikz: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[inner sep = 0pt] (a) {\includegraphics[width=6cm]{example-image-a}}; \node[anchor=south,inner sep=1pt] at (a.south) {This is $x-$label}; \node[anchor=south,inner sep=1pt,rotate=-90] at (a.west) {This is $y-$label}; ...


5

TeX is not “free form” and spaces are significant: remember that it's a program for typesetting. You have several spaces in your commands: \newcommand\entryOne[1]{ \ifnum #1 = 100 #1 \fi } The end of line after the brace counts as a space; also the space after the second #1 counts. It's true that in a table cell both are removed, but it's not a good ...


5

You need to make the table narrower than the text width, also as latex warns: LaTeX Warning: Unused global option(s): [paper=a4]. The document class option syntax was wrong. \documentclass[a4paper]{article} % A4 paper and 11pt font size \usepackage[dutch]{babel} % Dutch language/hyphenation \usepackage{array} ...


4

You could use empheq: \documentclass{article} \usepackage[fleqn]{amsmath} \usepackage{empheq} \newcommand{\diff}{\mathop{}\!\mathrm{d}} \newenvironment{boxedalign} {\setlength\mathindent{0pt}% \empheq[box=\fbox]{align*}} {\endempheq} \begin{document} \section{Integrals} Some text just to show alignment with the left margin that should fill a line ...


4

You can use tcolorbox: \documentclass{article} \usepackage{tcolorbox} \usepackage{lipsum} \newlength{\boxindent} \AtBeginDocument{\setlength{\boxindent}{2em}} \begin{document} %% A ``ruler'' \noindent \vrule width 2em height 0.4pt depth 0pt \kern-.2pt \vrule width .4pt height 3pt depth 2.6pt \kern-.2pt \vrule width \dimexpr\textwidth-2em\relax height ...


3

Here is a crude way of implementing your requirement. It uses etoolbox to patch the macros responsible for creating the chapter headings. There are two macros, one for \chapter and one for \chapter*. In each of these macros, an adjustment is made to the chapter title (argument #1) as well as the horizontal alignment - changing from \raggedright to ...


3

\put(50,1){\makebox(0,0){some x-label}} will put the (horizontal and vertical) centre of of the text at the specified position. To rotate text you can use \rotatebox \put(50,1){\makebox(0,0){\rotatebox{90}{some x-label}}}


3

Put \bordermatrix inside \[ \] and make it a display equation. \documentclass{article} \usepackage{amsmath,braket} \newcommand{\dirint}{\int} %% just for compiling, change it in your file \begin{document} \begin{figure}[h!] \[ \bordermatrix{~& \ket{\Phi_{0}} & \ket{S} & \ket{D} & \ket{T} & \ket{Q} & \dots \cr ...


3

Here are two options that provide similar layout. framedparA uses a center environment to set the contents horizontally inside a \parbox of required width. framedparB uses mdframed and allows to be broken across the page boundary. \documentclass{article} \usepackage{lipsum,environ,mdframed} \NewEnviron{framedparA}[1][2em]{% \begin{center} \fbox{% ...


1

This uses the stackengine package. Here, the x-axis label is centered horizontally, with the offset to the bottom of the label specified from the bottom of the graph. Likewise, the y-axis label is centered vertically, with the offset to the left of the label specified from the left of the graph. EDITED to show that image aspect poses no problems; nor does ...


1

Here are two possible options: \documentclass{article} \usepackage[fleqn]{amsmath} \usepackage{framed,varwidth} \begin{document} \section{Integrals} \begin{framed} \begin{itemize} \item[I.] $\displaystyle \int_a^b k \mathrm{d}x = k(b - a)$ \item[II.] $\displaystyle \int_a^b k \cdot f(x) \mathrm{d}x = k \cdot \int_a^b f(x) \mathrm{d}x$ ...



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