# Quote marks - Inverted L / Gamma symbol style?

I'm using XeLaTeX along with the cjk package. I'm trying to recreate quotation marks like the inverted L symbols in the following image:

A first attempt. Here's a MWE after looking at the comments and suggestions from @JoelReyesNoche and @NieldeBeaudrap (thanks for all the help!):

\documentclass[UTF8,nofonts]{ctexart}
\setCJKmainfont{KaiTi}

\begin{document}
\title{文件}
\author{我}
\date{2015 年 4 月 25 日}

\maketitle

\end{document}


I would, ideally, like to shorten the vertical part of the quote and lengthen the horizontal part so it looks more like the one in the first image, but it is not clear how.

A second attempt. It does seem slightly better when I change the font from KaiTi to AR PL UKai CN:

Questions.

1. Am I at the mercy of the font I'm using?
2. Is there a way to get quotation marks closer to those in the original example above?
• Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Apr 24 '15 at 7:25
• @ChristianHupfer: does this help? \documentclass{article}\begin{document}\end{document} – Niel de Beaudrap Apr 24 '15 at 8:01
• @NieldeBeaudrap: Nope ... perhaps there are some special packages needed? ;-) – user31729 Apr 24 '15 at 8:02
• Not very nice, but better than nothing: $\lceil$ text $\rfloor$ – Joel Reyes Noche Apr 24 '15 at 8:12
• The CJK brackets are Unicode characters U+300C (12300) and U+300D (12301). – Joel Reyes Noche Apr 24 '15 at 8:55

Here is a primitive attempt to achieve outcomes which may be close to what you need. This solution is perhaps suitable for those who wish to achieve square corner quotation marks such as yours, but prefer not to use a typesetting system specialised for Japanese such as pTeX [PDF documentation], or who cannot use a TeX engine specialised to use unicode input (for which the appropriate symbols are U+300C and U+300D respectively).

\documentclass{article}
\usepackage{scalefnt,amsmath}

\newcommand\lrectquote{%
\setbox0=\hbox{M}%
\raisebox{0.5\ht0}{%
\scalefont{0.5}{$\boldsymbol\lceil$}}}
\newcommand\rrectquote{%
{\scalefont{0.5}{$\boldsymbol\rfloor$}}}
\newcommand\rectquote[1]{%
\lrectquote#1\rrectquote}

\begin{document}
\rectquote{Rectangular quotation marks}
\end{document}


It seems you are looking for the Unicode characters U+231C ("top left corner") and U+231F ("bottom right corner"). Can you type these in using your keyboard?

• The decimal equivalents are 8988 and 8991. Does this work for you? – Joel Reyes Noche Apr 25 '15 at 3:12
• Hi @JoelReyesNoche, I can type the characters but then they show up as empty spaces when I generate the pdf file. I'm using vim so in insert mode, I press Ctrl-v then u then type 231C and the ⌜ character shows up. Similarly for the ⌟ character except it's 231F. I did the above by replacing the U+300C and U+300D characters in the MWE in my question. Please tell me if I'm doing it wrong, thanks! – yanhan Apr 25 '15 at 3:12