Tag Info

Hot answers tagged

3

Declare a “variable” format: \documentclass{article} \usepackage{amsmath} \usepackage{cleveref} \crefformat{equation}{\eqA eq.~\eqB #2#1#3)} \newcommand{\eqA}{} \newcommand{\eqB}{(} \DeclareRobustCommand{\pcref}[1]{% \begingroup \renewcommand{\eqA}{(}\renewcommand{\eqB}{}% \cref{#1}% \endgroup } \begin{document} \begin{equation} 1+1=2 ...


3

You can select the baseline for the tikzpicture; for example, using baseline=(current bounding box.north) as option you get The code: \documentclass[12pt,leqno]{article} \usepackage{amsmath, amsfonts, amssymb,amsthm} \usepackage[margin=1 in]{geometry} %margins \usepackage{tikz} %Vector Drawing and Graphs \usepackage{pgfplots} \usepackage{enumitem} ...


2

The quickest fix is to \let the listing entries be formatted as figure entries using \makeatletter \let\l@listing\l@figure \makeatother I reduced the original code even further up to almost a MWE: \documentclass[a4paper,12pt]{article} \usepackage{xcolor} \usepackage{setspace} \onehalfspacing \usepackage{listings} \usepackage{minted} ...


2

It doesn't work to use tabularx with no X columns, but I wouldn't use tabularx here. This is still a bit wide but not knowing the language I can't really abbreviate any more. \documentclass[fontsize=12pt,paper=letter,headings=small,bibliography=totoc,DIV=12,headsepline=true,titlepage=on]{scrartcl} \usepackage{soul} ...


2

The idea is correct using addtohook and \bookmarksetupnext. However, bold=false of \bookmarksetupnext is overwritten by the hook. Therefore \bookmarksetupnext must also use the hook: \documentclass[listof=totoc]{scrreprt} \usepackage{bookmark} \bookmarksetup{ open, addtohook={% \ifnum\bookmarkget{level}=0 % \bookmarksetup{bold}% ...


2

You can provide an additional toggle (or conditional) that is used in your hook. Below I defined \ifboldPDFchapters that you can switch depending on what you need, and added the conditional to the hook: \usepackage{bookmark} \newif\ifboldPDFchapters \bookmarksetup{ open, addtohook={% \ifnum\bookmarkget{level}=0 % \ifboldPDFchapters ...


2

For example, you could use \hfill before the words you want on the right: \documentclass{article} \begin{document} Company X \hfill City, State \end{document}


2

I think three minipages are enough: \documentclass{article} \usepackage[margin=1in]{geometry} % set margins to 1 inch \begin{document} \begin{center} {\Huge DaimyoKirby}\par\bigskip \begin{minipage}[b]{0.33333\textwidth} \raggedright 123 Main Street \par MyTown, USA 12345 \end{minipage}% \begin{minipage}[b]{0.33333\textwidth} \centering abc1234@myUni.edu ...


2

The inline verbatim is small because you specify it that way! Change the line basicstyle=\ttfamily\footnotesize, to basicstyle=\ttfamily, or whatever and you'll be fine.


1

Something like this? \documentclass[article]{memoir} \usepackage{lipsum} \fboxsep2em \begin{document}\fbox{\begin{minipage}[t][.4\textheight][t]{\linewidth} \fboxrule1pt\fboxsep1em \hfil \fbox{\begin{minipage}[t][4ex][c]{\dimexpr\linewidth-2em} \chapter{The Chapter} \end{minipage}}\vspace{1em} \section{The section} \lipsum[1] \end{minipage}} ...


1

I will follow my answer to making citations bold latex, where we saw how to do this for alphabetic styles. For numeric the only thing that changes is the relevant field names, here they are prefixnumber and labelnumber (ordinarily, especially the latter one is important). To bold labels use \DeclareFieldFormat{prefixnumber}{\mkbibbold{#1}} ...


1

From the fancyhdr manual (p. 7) Some LaTeX commands, like \chapter, use the \thispagestyle command to automatically switch to the plain page style, thus ignoring the page style currently in effect. To customize even such pages you must redefine the plain pagestyle. You could therefore write (adapted from the same manual, one page later) ...


1

You could also use the fancyhdr package for this: \usepackage{fancyhdr} \usepackage[margin=1in]{geometry} \pagestyle{fancy} \lhead{123 Main Street\\ MyTown, USA 12345} \chead{{\Huge DaimyoKirby}\\ abc1234@myUni.edu\\ 123.456.7890} \rhead{123 Campus Postoffice\\ CollegeTown, MyState 09876} \renewcommand{\headrulewidth}{0pt} %to get rid of the default rule ...


1

You can use the longdiv "package". I put package in quotes because loading it using \usepackage{} doesn't work and for whatever reason, you have to load it using \input longdiv.tex. Then you can do long division using \longdiv{6584}{28}. After that, you can use package polynom to do polynomial long division as \polylongdiv{x^2+2x+4}{x-1}


1

As far as I can understand, mainly you have a problem with floats placements. At this respect, some suggestions for a smooth layout transition: Inside the floats, always use table/image widths relatives to line width in %,never fixed sizes as 5 cm, nor sizes relatives to the text or column width. For example, for a figure use: This must produce in ...



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