Tag Info

New answers tagged

3

You need to patch the bibliography driver online provided by biblatex-chicago to achieve what you want. So, add the following lines in your preamble \usepackage{xpatch} \xpatchbibdriver{online} {\newunit\newblock \iftoggle{cms@doionly}% {\iffieldundef{doi}% {}% {\printfield{doi}% \clearfield{url}}}% {\printfield{doi}}% ...


4

Periods are a strange beast, because the space factor must be set correctly (of course, if you use \nonfrenchspacing). \catcode`@=11 \def\checkperiod{\futurelet\next\check@period} \def\check@period{% \if\noexpand\next.% \spacefactor\sfcode`. \expandafter\@gobble \fi} \long\def\@gobble#1{} \def\@{\spacefactor\@m} \catcode`@=12 \xspaceskip=4em % ...


3

I don't know if this was your intend by I try it: \long\def\isnextchar#1#2#3{\def\tmpa{#2}\def\tmpb{#3}% \let\tmp=#1\futurelet\next\isnextcharA } \def\isnextcharA{\ifx\tmp\next\expandafter\tmpa\else\expandafter\tmpb\fi} \def\PhD{\isnextchar.{PhD}{Ph.D.}} \def\PhD{\isnextchar.{PhD}{Ph.D.}} The \PhD\ inside the sentence is different than \PhD. gives: The ...


0

I use the following in all my latex documents: \usepackage[autostyle=false, style=english]{csquotes} \MakeOuterQuote{"} With this, you can simply quote your text like "this", and csquotes will change it to ``this'' The drawback is that if you forget a " it messes up the parity everywhere with no warnning. Also, If you need nested quotes, you will have ...


3

The basic interface is pretty simple, but you leave a lot of questions unanswered about the language(s) involved and the degree of complexity about quotations (and possibly about encodings). Here's the basic idea though: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,french]{babel} ...


4

The package you are using adds a ' so you can do the same to LT version after loading longtable: \makeatletter \def\LT@c@ption#1[#2]#3{% \LT@makecaption#1\fnum@table{#3}% \def\@tempa{#2}% \ifx\@tempa\@empty\else {\let\\\space \addcontentsline{lot}{table}{\protect\numberline{\thetable.}{#2}}}% \fi} \makeatother


2

You can redefine \glt to capture content up to some ending delimiter. Below I've used \end from \end{exe}: \documentclass{article} \usepackage[english]{babel} \usepackage{gb4e} \usepackage{csquotes} \begin{document} \begin{exe} \ex \gll Etwas fremdsprachiger Text \\ some {foreign language-y} text \\ \glt \enquote{Free translation.} \end{exe} ...


4

since this wasn't specifically a latex question, here's my favorite method. \def\<#1>{$\langle$\ignorespaces#1\unskip$\rangle$} \<some text> \< some text > good for "meta" notation, if this alternate form is used (does require latex): \def\<#1>{$\langle$\textit{\ignorespaces#1\unskip}$\rangle$}


4

Do you want angle brackets or guillemet quotes: \documentclass{article} \usepackage[T1]{fontenc} \begin{document} This $\langle$one, two three$\rangle$ or This \guilsinglleft one, two three\guilsinglright \end{document}



Top 50 recent answers are included