LyX ⇒ How do I rename the fixed strings like Abstract,LoF..
How do I rename the fixed strings like Abstract,LoF..
How do I rename the fixed strings like Abstract, Bibliography, List of Figures and Tables? Because I would to have:
ABSTRACT instead of Abstract
LIST OF FIGURES instead of List of Figures
LIST OF TABLES instead of List of Tables
REFERENCES instead of References
I've tried tu put
\renewcommand\abstractname{Executive Summary}
in the Preamble but it does not work...
Someone can help me?
Thank You,
davide
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
How do I rename the fixed strings like Abstract,LoF..
It seems that LyX uses the babel package to deal with language support. If you export your lyx file to LaTeX, you'll see the line \usepackage{babel}. The problem is that LyX places it after any changes you've done in Document > Settings... > LaTeX Preamble, so invalidating them.
You have two possible solutions, choose the one you prefer:
- Before the abstract, insert an ERT with the code you already tried without success:
\renewcommand\abstractname{Executive Summary} - In Document > Settings... > LaTeX Preamble, add this line:
\AtBeginDocument{\addto\captionsenglish{\def\abstractname{Executive Summary}}}
Re: How do I rename the fixed strings like Abstract,LoF..
Cheers
davide
-
- Posts: 1
- Joined: Wed Feb 11, 2009 12:40 am
Re: How do I rename the fixed strings like Abstract,LoF..
\renewcommand\contentsname{your title for TOC}
\renewcommand\listfigurename{your title for LoF}
\renewcommand\listtablename{your title for LoT}
\renewcommand\refname{your title for Bib.}
\renewcommand\abstractname{your title for abstract}
Note: i'm using Lyx version 1.6.1. on Windows XP
Changing "Algorithm" to "Algorithmus" etc..
I have a similar Problem:
LyX prints "Algorithm" instead of the german Word "Algorithmus".
I already changed the document-settings and the program-settings to German. But it doesn´t work.
I wonder, because all other words are fine, like
"Abbildung"
"Tabelle"
....
By the way. Is there a possibility, to change "Abbildung" to "Bild" ?
Thank you very much for your help!
greetings
Re: How do I rename the fixed strings like Abstract,LoF..
Please, this is urgent....I got to finish my small diploma thesis....

Re: How do I rename the fixed strings like Abstract,LoF..
How do I rename the fixed strings like Abstract,LoF..
Code: Select all
%% LyX 1.6.4.2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,english,ngerman]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{listings}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=3.5cm,bmargin=3.5cm,lmargin=3cm,rmargin=3cm}
\pagestyle{headings}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{color}
\usepackage{babel}
\usepackage{varioref}
\usepackage{float}
\usepackage{units}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{makeidx}
\makeindex
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage[unicode=true,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=1,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=true]
{hyperref}
\hypersetup{pdftitle={E},
pdfauthor={P},
pdfsubject={s},
pdfkeywords={s},
linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\newcommand{\noun}[1]{\textsc{#1}}
\newcommand{\lyxmathsym}[1]{\ifmmode\begingroup\def\b@ld{bold}
\text{\ifx\math@version\b@ld\bfseries\fi#1}\endgroup\else#1\fi}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}[chapter]
\floatname{algorithm}{Algorithm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\newenvironment{lyxcode}
{\par\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\setlength{\listparindent}{0pt}% needed for AMS classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
\item[]}
{\end{list}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% DO NOT ALTER THIS PREAMBLE!!!
%
%This preamble is designed to ensure that the document prints
% out as advertised. If you mess with this preamble,
% parts of the document may not print out as expected. If you
% have problems LaTeXing this file, please contact
% the documentation team
% email: lyx-docs@lists.lyx.org
\usepackage{ifpdf} % part of the hyperref bundle
\ifpdf % if pdflatex is used
% set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
\fi % end if pdflatex is used
% Die Seiten des Inhaltsverzeichnisses werden rˆmisch numeriert,
% ein PDF-Lesezeichen f¸r das Inhaltsverzeichnis wird hinzugef¸gt
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter }
% redefine the \LyX macro for PDF bookmarks
\def\LyX{\texorpdfstring{%
L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
{LyX}}
% My Preamble
\usepackage{tikz}
\usepackage{pgfplots}
% recommended as of Pgfplots 1.3:
\pgfplotsset{compat=newest}
\usepackage{signalflowdiagram}
\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
\makeatother
\begin{document}
\begin{algorithm}
\begin{lstlisting}[basicstyle={\ttfamily},language=C]
i++;
\end{lstlisting}
\caption{\label{alg:Lineare-Int_KoeffA1} Legend in English}
\end{algorithm}
\begin{figure}[h]
\begin{centering}
%
\par\end{centering}
\caption{\label{fig:Dreiecksmoduation}Legend in German.}
\end{figure}
\end{document}
How do I rename the fixed strings like Abstract,LoF..
Code: Select all
\floatname{algorithm}{Algorithmus}
\addto\captionsngerman{\def\figurename{Bild}}
Re: How do I rename the fixed strings like Abstract,LoF..
Thank you, Juanjo!!
This works like a charm. Why is "algorithm" the only word, which is still in English? Is this a LaTeX or LyX Error?