Generalsingle smart quotes

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
latex_fun
Posts: 4
Joined: Mon Jun 16, 2025 11:00 am

single smart quotes

Post by latex_fun »

Hi again Stefan!
Is there an easy way to do single smart quotes?
I'm currently trying \usepackage[autostyle]{csquotes} but:
1. Doesn't give smart quotes, just straight lines;
2. Words immediately following the right quote don't seem to get a leading space (so the code below renders like; like 'quoting this'following ...).

Code: Select all

 \textquotesingle quoting this\textquotesingle following word here 


Thank you

preamble etc:

Code: Select all

\documentclass{scrartcl}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{appendix}
\usepackage{braket}
\usepackage{fancyvrb}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{pdfpages}
\usepackage{tikz}
\usepackage{mathrsfs}
\usepackage{eufrak}
\usepackage{yfonts}
\usepackage{lmodern}
\usepackage{principia}
\usepackage[english]{babel}
\usepackage[autostyle]{csquotes}
\usepackage{changepage}
\usetikzlibrary{trees}
\usetikzlibrary{babel}
\usepackage{verbatim}
\setcounter{secnumdepth}{5}
\setcounter{secnumdepth}{5}
\lstset{language={[LaTeX]TeX},
  escapeinside={{(*@}{@*)}}, 
  gobble=0,
  stepnumber=1,numbersep=5pt, 
  numberstyle={\footnotesize\color{gray}},%firstnumber=last,
  breaklines=true,
  framesep=5pt,
  basicstyle=\small\ttfamily,
  showstringspaces=false,
  keywordstyle=\ttfamily\textcolor{blue},
  stringstyle=\color{orange},
  commentstyle=\color{black},
  rulecolor=\color{gray!10},
  breakatwhitespace=true,
  showspaces=false,  
  backgroundcolor=\color{gray!15}}
%------------------------------------------------------------
% Theorem like environments
%
\newtheorem{theorem}{Theorem}
\theoremstyle{plain}
%more of this stuff
\numberwithin{equation}{section}
\providecommand{\versionnumber}{0.0} 
\newcommand*{\titleGM}{\begingroup 
  \hbox{ 
    \hspace*{0.2\textwidth} 
    \hspace*{0.05\textwidth} 
    \parbox[b]{0.75\textwidth}{ 
      {\noindent\huge\bfseries Great title } \vspace*{0.5cm} \newline
      {\noindent\huge\bfseries yup}\\[2\baselineskip] 
      {\normalsize \textit{More title}}\\[4\baselineskip] 
      {\Large \textsc{Author name}} 
      \newline \newline \newline \newline \newline \newline
      \newline \newline \newline \newline \newline \newline
      \newline \newline \newline \newline \newline \newline
      \newline \newline \newline \newline \newline \newline
      \newline \newline \newline \newline \newline \newline
               {\noindent \copyright\ date name} \newline 
               \newline %\newline 
                   {\noindent Version \versionnumber} % Publisher and logo
  }}
  \endgroup}

\listfiles
\begin{document}
\pagenumbering{gobble}
\begin{titlepage}
  \titleGM
  \thispagestyle{empty}
\end{titlepage}
% put some text here but deleted ...
\newpage
\addtocontents{toc}{\protect\enlargethispage{\baselineskip}}
              {\small \tableofcontents}
              \newpage
              \pagenumbering{arabic}
              \section{my first section}
              \textquotesingle quoting this\textquotesingle following word here
              \section{final section}
              that's all
\end{document}
Last edited by latex_fun on Wed Jun 18, 2025 3:15 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: single smart quotes

Post by Stefan Kottwitz »

Hi,

use the \textquote* command:

Code: Select all

\textquote*{quoting this} following word here
This solves both points.

Stefan
LaTeX.org admin
latex_fun
Posts: 4
Joined: Mon Jun 16, 2025 11:00 am

Re: single smart quotes

Post by latex_fun »

Thanks!
Post Reply