LaTeX forum ⇒ GeneralFacing issue of chinese text in adobe javascript code

LaTeX specific issues not fitting into one of the other forums of this category.
amolpatil
Posts: 1
Joined: Tue Aug 27, 2019 1:27 pm

Facing issue of chinese text in adobe javascript code

Postby amolpatil » Tue Aug 27, 2019 1:47 pm

I am trying to implement chinese with latex using ctex package.
The latex file also content below code but below whole code gets failed

% Below is simple example i have created to replicate this issue.
% If we replace chinese text defined with app.alert by english text then its starts working.

\documentclass{article}
\usepackage[UTF8]{ctex}
\usepackage[utf8]{inputenc}
\usepackage{amstext}
\usepackage{hyperref}
\renewcommand*{\DefaultHeightofChoiceMenu}{20ex}

\begin{document}
\begin{Form}
飞到我的窗前唱歌
\ChoiceMenu[print,combo,default=Box 1,name=box1,onblur={app.alert("飞到我的窗前唱歌");}]{}{Item 1,Item 2, Item 3, Item 4, Item 5}
\quad % adds a bit of space
\ChoiceMenu[print,combo,default=Box 2,name=box2]{}{Item 1,Item 2, Item 3, Item 4, Item 5}
\end{Form}
\end{document}

%------------------


Error msg
! Extra \else.
\CJK@XXX ...}\expandafter \CJK@ignorespaces \else
\csname u8:\string #1\stri...



Please guide me to solve this issue.

Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests