- Questo topic ha 8 risposte, 4 partecipanti ed è stato aggiornato l'ultima volta 15 anni, 7 mesi fa da .
-
Topic
-
Buongiorno,sto utilizzando DokuWiki per la creazione di un wiki!
Il programma fornisce un plugin, Doku TeXit, che permette di creare un file tex e poi pdf delle pagine del wiki.
Funziona tutto bene, tranne quando ci sono degli accenti.
Le ho provate un po’ tutte, ma non sono riuscita ad evitare degli errori.Ecco di seguito le impostazioni di Doku TeXit:
DokuTeXit Begin/Header:
`
\documentclass[twoside,a4paper,10pt]{report}
\usepackage{ucs}
\usepackage[T1]{fontenc}
\usepackage[utf8,utf8x]{inputenc}
\usepackage[english,german,french,italian]{babel} %% Use your own babel language ,ngerman,frenchb
\usepackage[top=3cm,bottom=3cm,left=2.5cm,right=2.5cm]{geometry}
\usepackage{pslatex}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{supertabular}
\usepackage{pdflscape} %% Used for very big table
\usepackage{moreverb}
\usepackage{color}
\usepackage{listings}
\usepackage{lastpage}
\usepackage{fancyhdr}
\usepackage{ulem}
\usepackage{textcomp}
\usepackage{wasysym}
\usepackage{wrapfig} %%Usefull for image
%\usepackage{fguill} %%Use this package for guillemot[left|right] useless with babel set to french
\usepackage{eso-pic} %% Background
`Dokutexit Command:
`
\pagestyle{fancy}%
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\chaptermark}[1]{%
\markboth{\chaptername\ \thechapter.\ #1}{}}\renewcommand{\sectionmark}[1]{%
\markright{#1}{}}\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[R]{\thepage/\pageref{LastPage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\fancyhf{}
\fancyhead[L]{\rightmark}
\fancyhead[R]{\leftmark}
\fancyfoot[R]{\thepage/\pageref{LastPage}}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0pt}\definecolor{codegray}{gray}{.95}
\lstset{language=C,
numbers=left,
tabsize=2,
basicstyle=\scriptsize,
stringstyle=\textrm,
showstringspaces=false,
frame=none,
xleftmargin=3pt,
backgroundcolor=\color{codegray}}\newcommand{\settexitref}[2]{(\ref{#1}p\pageref{#1})}
\newcommand{\dokutitlelevelone}[1]{\chapter{#1}}
\newcommand{\dokutitleleveltwo}[1]{\section{#1}}
\newcommand{\dokutitleleveltree}[1]{\subsection{#1}}
\newcommand{\dokutitlelevelfour}[1]{\subsubsection{#1}}
\newcommand{\dokutitlelevelfive}[1]{\paragraph{#1}}
\newcommand{\dokufootnote}[1]{\footnote{#1}}
\newcommand{\dokufootmark}[1]{\footnotemark[#1]}
\newcommand{\dokubold}[1]{\textbf{#1}}
\newcommand{\dokuitalic}[1]{\textsl{#1}}
\newcommand{\dokumonospace}[1]{\texttt{#1}}
\newcommand{\dokuunderline}[1]{\underline{#1}}
\newcommand{\dokuoverline}[1]{\sout{#1}}
\newcommand{\dokusupscript}[1]{\textsuperscript{#1}}
\newcommand{\dokusubscript}[1]{$_{#1}$}
\newcommand{\dokuhline}{\line(1,0){400}}
\newcommand{\dokulabel}[1]{\label{#1}}
\newcommand{\dokuitem}{\item}
\newcommand{\dokuquoting}{\textbar}
\newcommand{\dokutabularwidth}{\textwidth}
\newcommand{\dokusupertabularheadbreak}{\small\sl continued from previous page}
\newcommand{\dokusupertabulartailbreak}{\small\sl continued on next page}
\newcommand{\dokuheadingstyle}[1]{\textbf{#1}}
\definecolor{dokuheadingcolor}{rgb}{0,0,0.60}
\newcommand{\dokubackground}[1]{%
\AddToShipoutPicture{%
\AtTextCenter{%
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{25}{\textsf{\textbf{\textcolor[gray]{0.90}{#1}}}}}}%
}%
}%
}
`DokuTeXit Document:
`
\begin{document}
\thispagestyle{empty}
\maketitle
\thispagestyle{empty}
\cleardoublepage
\tableofcontents
\newpage
\thispagestyle{plain}
\cleardoublepage
\newpage
`DokuTeXit Entities
(Here you can setup entities translations bettween Dokuwiki and Latex Typography to Latex entities Order does matter! )`
\ {\textbackslash}
# \#
% \%
& \&
_ {\textunderscore}
$ {\textdollar}
< $<$ > $>$
(c) {\copyright}
(tm) {\texttrademark}
(r) {\textregistered}
-> {$\rightarrow$}
<- {$\leftarrow$} <-> {$\leftrightarrow$}
=> {$\Rightarrow$}
<= {$\Leftarrow$} <=> {$\Leftrightarrow$}
%<< {\guillemotleft} %>> {\guillemotright}
^ \^{ }
~ \~{ }
… \ldots{}
„ \“{}
“ \''{}
„ \“{}
ö \”{o}
ì {\`{\i}}
í {\’{\i}}
è \`e
é \’e
È {\`E}
É {\’E}
à {\`a}
á {\’a}
À {\`A}
Á {\’A}
ù {\`u}
ú {\’u}
ò {\`o}
ó \’o
LaTeX \LaTeX{}
`Ed ecco l’errore che mi da quando incontra un’accento:
`latex pass 1:
cmdline: latex /var/www/wiki/data/media/texit/tmp/metadata/config-files.tex 2>&1
ret: 1
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(/var/www/wiki/data/media/texit/tmp/metadata/config-files.tex
LaTeX2e <2005/12/01>
Babel and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, loaded.
(/usr/share/texmf-texlive/tex/latex/base/report.cls
Document Class: report 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf-texlive/tex/latex/ucs/ucs.sty
(/usr/share/texmf-texlive/tex/latex/ucs/data/uni-global.def))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
(/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
(/usr/share/texmf-texlive/tex/latex/base/utf8.def
(/usr/share/texmf-texlive/tex/latex/base/t1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/ot1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/omsenc.dfu))
(/usr/share/texmf-texlive/tex/latex/ucs/utf8x.def))
(/usr/share/texmf-texlive/tex/generic/babel/babel.sty
(/usr/share/texmf-texlive/tex/generic/babel/english.ldf
(/usr/share/texmf-texlive/tex/generic/babel/babel.def))
(/usr/share/texmf-texlive/tex/generic/babel/germanb.ldf)
(/usr/share/texmf-texlive/tex/generic/babel/frenchb.ldf
*************************************
* Local config file frenchb.cfg used
*
(/usr/share/texmf-texlive/tex/generic/babel/frenchb.cfg))
(/usr/share/texmf-texlive/tex/generic/babel/italian.ldf))
(/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty))
(/usr/share/texmf-texlive/tex/latex/pslatex/pslatex.sty)
(/usr/share/texmf-texlive/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf-texlive/tex/latex/hyperref/pd1enc.def)
(/etc/texmf/tex/latex/config/hyperref.cfg)
(/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty)
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty))
*hyperref using default driver hdvips*
(/usr/share/texmf-texlive/tex/latex/hyperref/hdvips.def
(/usr/share/texmf-texlive/tex/latex/hyperref/pdfmark.def))
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/usr/share/texmf-texlive/tex/latex/tools/tabularx.sty
(/usr/share/texmf-texlive/tex/latex/tools/array.sty))
(/usr/share/texmf-texlive/tex/latex/supertabular/supertabular.sty)
(/usr/share/texmf-texlive/tex/latex/oberdiek/pdflscape.sty
(/usr/share/texmf-texlive/tex/latex/graphics/lscape.sty)
(/usr/share/texmf-texlive/tex/latex/everyshi/everyshi.sty))
(/usr/share/texmf-texlive/tex/latex/moreverb/moreverb.sty
(/usr/share/texmf-texlive/tex/latex/tools/verbatim.sty))
(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvipsnam.def))
(/usr/share/texmf-texlive/tex/latex/listings/listings.sty
(/usr/share/texmf-texlive/tex/latex/listings/lstpatch.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstmisc.sty)
(/usr/share/texmf-texlive/tex/latex/listings/listings.cfg))
(/usr/share/texmf-texlive/tex/latex/lastpage/lastpage.sty)
(/usr/share/texmf-texlive/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/share/texmf-texlive/tex/latex/ltxmisc/ulem.sty)
(/usr/share/texmf-texlive/tex/latex/base/textcomp.sty
(/usr/share/texmf-texlive/tex/latex/base/ts1enc.def
(/usr/share/texmf-texlive/tex/latex/base/ts1enc.dfu)))
(/usr/share/texmf-texlive/tex/latex/wasysym/wasysym.sty)
(/usr/share/texmf-texlive/tex/latex/wrapfig/wrapfig.sty)
(/usr/share/texmf-texlive/tex/latex/eso-pic/eso-pic.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstmisc.sty) (./config-files.aux)
(/usr/share/texmf/tex/latex/lm/t1lmr.fd)
(/usr/share/texmf-texlive/tex/latex/psnfss/omspzccm.fd)
(/usr/share/texmf-texlive/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf-texlive/tex/latex/ucs/ucsencs.def)
(/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty
(/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty)) (./config-files.out
) (./config-files.out) ABD: EveryShipout initializing macros
(/usr/share/texmf-texlive/tex/latex/psnfss/ot1ptmcm.fd)
(/usr/share/texmf-texlive/tex/latex/psnfss/omlptmcm.fd)
(/usr/share/texmf-texlive/tex/latex/psnfss/omxpsycm.fd)
(/usr/share/texmf-texlive/tex/latex/wasysym/uwasy.fd) [1] [2]
(./config-files.toc)LaTeX Warning: Reference `LastPage' on page 3 undefined on input line 103.
[3]
LaTeX Warning: Reference `LastPage' on page 4 undefined on input line 105.
[4]
Capitolo 1.
(/usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstmisc.sty)! Package utf8x Error: MalformedUTF-8sequence.
See the utf8x package documentation for explanation.
Type H for immediate help.
…l.168 Ce manuscrit, copié
sur parchemin au XVe siècle à Flo…?
! Emergency stop.
…l.168 Ce manuscrit, copié
sur parchemin au XVe siècle à Flo…Output written on config-files.dvi (4 pages, 6148 bytes).
Transcript written on config-files.log.`Qualcuno può aiutarmi?
Grazie!
- Devi essere connesso per rispondere a questo topic.