New MembersPackage textcomp Error: Symbol \textrightarrow not provided

You would like to introduce yourself before starting to post? That's a nice idea and here is the forum for you...
Post Reply
selly
Posts: 3
Joined: Thu Aug 04, 2016 6:35 pm

Package textcomp Error: Symbol \textrightarrow not provided

Post by selly »

! Package textcomp Error: Symbol \textrightarrow not provided by
(textcomp) font family bch in TS1 encoding.
(textcomp) Default family used instead.

See the textcomp package documentation for explanation.
Type H <return> for immediate help.
...

l.1407 S \textrightarrow
{} A \textrightarrow{} B \textrightarrow{} C \textri...

Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.



please help me, i've a tons of that warning.
i got deadline to finished my work.
how to resolve that problem ?
i've been try to add \PassOptionsToPackage{warn}{textcomp} but its not working :cry: :cry: :cry:

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: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Package textcomp Error: Symbol \textrightarrow not provided

Post by Stefan Kottwitz »

Hi Selly,

how on earth could you imagine, people can fix it without seeing your code? ;)

Seems that you use the bitstream charter font, that doesn't provide that error. Quick fix:

Code: Select all

\newcommand*{\origrightarrow}{}
\let\oldarrow\textrightarrow
\renewcommand*{\textrightarrow}{\fontfamily{cmr}\selectfont\origrightarrow}
Next time it would be great if you would provide a Infominimal working example for the problem, so we could test, see, and fix the error.

Stefan
LaTeX.org admin
selly
Posts: 3
Joined: Thu Aug 04, 2016 6:35 pm

Re: please help me how to resolve this problem

Post by selly »

hey thank u that code works but arrow doesnt show in pdf, how to show the arrow ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Package textcomp Error: Symbol \textrightarrow not provided

Post by Stefan Kottwitz »

You did not provide any information besides the error message. So I cannot know what happens in your case.

In my PDF the error is shown, using this code.

As said, perhaps show your (reduced, but compilable) code (see: Infominimal working example), possibly also your .log file, and you could even post a PDF (that compiled reduced code) as attachment.

Stefan
LaTeX.org admin
selly
Posts: 3
Joined: Thu Aug 04, 2016 6:35 pm

Package textcomp Error: Symbol \textrightarrow not provided

Post by selly »

Code: Select all

%% \renewcommand{\chapter}[1]{\chapter[#1]{\centering #1}}
\usepackage{titlesec}
\usepackage{graphicx}
%\titleformat{\chapter}[display]
% Reza 10/9/2015
\titleformat{\chapter}
% {\normalfont\huge\bfseries\centering}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
% Reza 10/9/2015
 {\normalfont\huge\bfseries\centering}{\thechapter.}{20pt}{\Huge}
\newcommand{\Judul}{}
\newcommand{\JudulInggris}{}
\newcommand{\Penulis}{}
\newcommand{\NPM}{}
\newcommand{\NIRM}{}
\newcommand{\JenisTulisan}{}
\newcommand{\Gelar}{}
\newcommand{\Jurusan}{}
\newcommand{\Jurusane}{}
\newcommand{\Prodi}{}
\newcommand{\Prodie}{}
\newcommand{\Tahun}{}
\newcommand{\Bulan}{}
\newcommand{\Tanggal}{}
\newcommand{\Kota}{}
\newcommand{\KataKunci}{}
\newcommand{\KeyWords}{}
\newcommand{\KoordinatorPI}{}
\newcommand{\KetuaJurusan}{}
\newcommand{\Pembimbing}{}
\newcommand{\Ringkasan}{}
\newcommand{\JumlahPustaka}{}
\newcommand{\JumlahHalaman}{}
\newcommand{\JumlahHalamanDepan}{}
\newcommand{\TahunPustaka}{}
%%
%% Keterangan administratif sidang sarjana
%%
\newcommand{\TanggalSidang}{}
\newcommand{\TanggalLulus}{}
\newcommand{\TanggalSah}{}
\newcommand{\PejabatBagianSidang}{}
\setlength{\headheight}{15pt}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{Chapter  \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}{}}

\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{\nouppercase{\leftmark}}}
\fancyhead[LO]{\textit{\nouppercase{\rightmark}}}

\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}}
\exhyphenpenalty=10000\hyphenpenalty=10000 
\let \oldarrow\textrightarrow
\renewcommand*{\textrightarrow}{}


that's my doc preamble.
in pdf should be like that S → A → B → C → D → E → F → G → H → I → J → K → L → M → N → O
but the fact in pdf like this S A B C D E F G H I J K L M N O

please help me :cry:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Package textcomp Error: Symbol \textrightarrow not provided

Post by Stefan Kottwitz »

First, that may be part of your preamble but it doesn't work. Did you read this: Infominimal working example?
There's no document class, the first line is missing. No fancyhdr package loaded, but you use it, many errors.

You did not use my code but did it differently. You save time not reading what Infominimal working example is, I save time to not repeat my code. Compare your code and my code.

Stefan
LaTeX.org admin
Post Reply