I'm trying to enter two Unicode characters in my document. The first is 「 and the second is 」. However, none of the solutions I've seen thus far have been able to help me implement these two characters. The following code is where I try to insert the characters using the methods mentioned in other posts like
\newunicodechar{}{}
or
\DeclareUnicodeCharacter{}{}
or
\char"
I am not entirely sure if I have used these commands correctly that's why I have provided the entirety of my code below.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{newunicodechar}
\newunicodechar{「}{\mopen}
\newunicodechar{」}{\mclose}
\DeclareUnicodeCharacter{14A5}{\mopen2}
\DeclareUnicodeCharacter{14A7}{\mclose2}
\title{Unicode char test}
\author{Skip}
\date{}
\begin{document}
\maketitle
\mopen「test\mclose」
\char"14A5
\end{document}
In this document I'm trying to print "「test」" and below that just the character "「". In the output, I just get "Test" and for some reason, it prints "14A52 14A72" on the preceding page. The output is accompanied by a few undefined control sequence errors relating to the use of
\DeclareUnicodeCharacter{}{}
and
\mopen
\mclose
For further information; I am using XeLaTeX on Sharelatex.
I hope the information provided will be sufficient to answer my question.
inputenc
\mopen
defined anywhere? it is not a command name that I recognise.\lceil
and/or\rfloor
fromamsmath
package. (table 92 in The Comprehensive LaTeX Symbol List)amssymb
as\ulcorner
and\lrcorner
.