Risposte nei forum create
-
AutoreRisposte
-
::
Beh… che dire: grazie mille, Andrea! 🙂
A presto,
L.Ancora meglio
`
\makeatletter
\newcommand\acnl[1]{%
{%
\let\AC@hyperlink\@secondoftwo%
\ac{#1}%
}%
}
\makeatother
`Poi ho provato a ridefinire il comando \ac per avere quel comportamento ovunque ma non so perché non funziona
`
\let\acnl\ac
\renewcommand\ac[1]{%
{%
\let\AC@hyperlink\@secondoftwo%
\acnl{#1}%
}%
}`Infatti non mi crea il pdf. Bo!
Ciao
Andrea
::
Ancora meglio, così è un po’ più universale.
Nel preambolo scrivi
`
\makeatletter
\newcommand\deftoclevel[2][chapter]{
\expandafter\renewcommand\csname toclevel@#1\endcsname{#2}}
\makeatother
`
e nel punto incriminato, quello di prima, metti
`\deftoclevel{-1}`
o
`
\deftoclevel{chapter}{-1}`Di default il livello del chapter è 0 mentre quello di part è -1. Poi il livello di section è 1 e così via. Questo per la classe book.
Ciao
Andrea
::Ciao a tutti, uso acronym e hyperref. Se introduco un acronimo con il comando
`\ac{pdf}`
la voce “pdf” viene marcata come un collegamento ipertestuale (quindi resa cliccabile e colorata di conseguenza).C’è un comando che disabiliti questo comportamento (che mi pare “eccessivo”)?
Ne ho provate tante, ma invano.
Grazie,
L.Al posto di \ac usa \acnl, dove (nl sta per no link) così definito:
`
\makeatletter
\def\acnl#1{%
\begingroup%
\def\AC@hyperlink##1##2{##2}%
\def\AC@hypertarget##1##2{##2}%
\ac{#1}%
\endgroup%
}
\makeatother
`Comunque controlla se ha qualche effetto collaterale, anche se non credo.
La stessa cosa puoi fare con gli altri comandi.
::
Perché la prima pagina ha il numero sotto che va incluso nella misura.Prova con questo
`
\documentclass[a4paper,11pt]{amsart}
\usepackage[a4paper,vmargin=3.6cm,centering,heightrounded]{geometry}
\pagestyle{empty}
\usepackage{graphicx}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{amsfonts}
\usepackage[italian]{babel}
\usepackage{fancybox}
\usepackage{psfig,lipsum}
\AtBeginDocument{\thispagestyle{empty}}
\begin{document}
\thispagestyle{empty}
\lipsum
\end{document}`a me viene 13.5×22.5 circa.
Ciao
Andrea
::Vi ringrazio tutti tantissimo ma non cambia niente…Perchè???? 😥
Senti, a me
`
\documentclass[a4paper,11pt]{amsart}\usepackage{graphicx,lipsum}
\usepackage{amsmath,amsthm,amssymb}
\usepackage[text={13.5cm,21.5cm},centering,heightrounded]{geometry}
%\setlength{\textheight}{21.5cm}
%\setlength{\textwidth}{13.5cm}
%\calclayout\begin{document}
\lipsum
\showthe\textheight
\showthe\baselineskip
\end{document}`Funziona .Infatti il log mostra che \textheight è di 608pt mentre 21.5cm sono 610pt circa.
Dà 608 pt perché c’è heightrounded che arrotonda \textheight al più vicino valore pari a [(multiplo di \baselineskip) -2\topskip) .
Ho misurato con acrobat pro ed è 21.352 cm circa.
Quindi va bene.
Ciao
Andrea
::Ciao a tutti!
Il mio problema sarà stato già trattato ma ho provato a guardarci e non ho capito nulla.
Io uso il documentclass amsart e devo impostare la larghezza e l’altezza del testo a 13.5cm X 21.5cm.
Io ho utilizzato il seguente metodo:`\usepackage[text={13.5cm,21.5cm},centering]{geometry}`
Il risultato non è corretto. Ho stampato, ho misurato e le misure sono inferiori.
Qualcuno riesce a spiegarmi come posso fare? Devo assolutamente avere le misure corrette.
Grazie mille
Aggiungi \calclayout subito dopo.
Anche se a me non sembra sia diverso.
Ciao
Andrea
::Scusa Enrico,
ma con questo codice`
\begin{table}[H]
\centering
\begin{tabularx}{100mm}{r>{\raggedright\arraybackslash}X}
\toprule
ID: & T002\\
\midrule
Scopo: & Creare una nuova guida senza selezionare il documento PDF di riferimento\\
\midrule
Prerequisiti: & \textendash \\
\midrule
Test data: & title, description, solution place selection\\
\midrule
Steps: & 1. inserimento title, description. solution place\\
& 2. click tasto salva\\
\midrule
Risultato atteso: & 1. messaggio di avviso di mancata selezione del documento PDF\\
& 2. ritorno alla schermata di creazione della guida\\
\bottomrule
\end{tabularx}
\caption{Test case 002\label{}}
\end{table}`non riesco a compilare…sicuramente ho sbagliato qualcosa. forse su “\arraybackslash”, che no era riconosciuto nel code completion..sapresti aiutarmi, per favore?
Grazie, ciao.
il comando \arraybackslash ha bisogno del pacchetto array.
Ciao
Andrea
::
Ti metto un esempio che funziona con fancyhdr. Il discorso precedente vale solo se non usi fancyhdr.Ecco il file main.tex`
\documentclass[12pt,twoside,a4paper]{book}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage[usenames]{color}
\usepackage{fancyhdr,lipsum}
\usepackage[sectionbib]{bibunits}
\usepackage[square,sectionbib,sort]{natbib}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\scshape\thepage}
\fancyhead[LO]{\bfseries\footnotesize\nouppercase{\rightmark}}
\fancyhead[RE]{\bfseries\footnotesize\nouppercase{\leftmark}}
\setlength{\headheight}{15pt}\begin{document}
\bibliographyunit[\chapter]%ogni capitolo funziona come una bibunit
\input{capitolo.tex}
\end{document} `Mentre capitolo.tex è
`
\chapter{capitolo}
\lipsum[1]
\lipsum
\renewcommand*{\bibname}{References}
\markboth{References}{References}%
\nocite{*}
\putbib[biblio]`A me funziona bene.
Prova
Andrea
::
A parte che nella seconda parte sbagliai. Non è
`
renewcommand{\theTitleReference}[2]{\MakeLowercase{##2}`
ma
`
\renewcommand{\theTitleReference}[2]{%
\MakeLowercase{#2}%
}%`Poi, tornando a questo secondo problema, puoi caricare i pacchetti in questo modo
e usare \titleref che sembra funzionare anche con hyperref:
Esempio:
`
\documentclass{article}
\usepackage{nameref}
\usepackage{titleref}
\usepackage{hyperref}
\renewcommand{\theTitleReference}[2]{%
\MakeLowercase{#2}%
}%
\begin{document}
\section{Documento temporaneo per esperimenti}\label{titolo}
Testo testo, \titleref{titolo} testo \nameref{titolo} \currenttitle
\end{document}`Non sembra dare problemi.
Prova e fammi sapere
Andrea
::
Compila questo e vedi se a posto della a non compare un 1:`
\documentclass[12pt]{beamer}
\usetheme{Frankfurt}
\usepackage[latin1]{inputenc}
\usepackage[italian]{babel}
\usepackage{graphicx}
\makeatletter
\def\@thm#1#2#3{%
\ifhmode\unskip\unskip\par\fi
\normalfont
\let\thmheadnl\relax
\let\thm@swap\@gobble
\thm@headpunct{.}% add period after heading
\thm@space@setup
#1% style overrides
\def\inserttheoremname{#3}
\def\inserttheorempunctuation{\the\thm@headpunct}
\def\@tempa{#2}%
\ifx\@empty\@tempa
\def\inserttheoremnumber{}
\else
\refstepcounter{#2}%
\expandafter\def\expandafter\inserttheoremnumber\expandafter{ \csname the#2\endcsname}
\fi
\beamer@begintheorem%
\renewcommand{\thefootnote}{\arabic{\footnote}}
}
\makeatother
%\newtheorem{Teorema}{Teorema}
\newtheorem{definiz}{Definizione}
\newtheorem{Esempio}{Esempio}
\newtheorem{Osservazioni}{Osservazione}
%\newtheorem{Lemma}
%\usepackage{bm}
\usepackage{pgf}
\usepackage{amsbsy}
\usepackage{latexsym}
\usepackage{inputenc}
\usepackage{color}
\usepackage{times}
\mode\useoutertheme[subsection=false]{miniframes} \defbeamertemplate{slidenumber}{framenumber}
{\insertframenumber}
\defbeamertemplate*{slidenumber}{totalframenumber}
{\insertframenumber\,/\,\inserttotalframenumber}
\defbeamertemplate{slidenumber}{pagenumber}
{\insertpagenumber}
\defbeamertemplate{slidenumber}{totalpagenumber}
%{\insertpagenumber\,/\,\insertpresentationendpage}\useinnertheme{rounded}
\defbeamertemplate*{footline}{split slidenumber right}
{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm
plus1fil]{title in head/foot}%
\usebeamerfont{title in head/foot}{Approccio non parametrico all'analisi della cointegrazione}%
\hskip2ex plus1fill%
\usebeamertemplate{slidenumber}%
\end{beamercolorbox}}%
\vskip0pt%
%\usetheme[]{Marburg}
%\usetheme{Singapore}
\usecolortheme{seahorse}
\usecolortheme{rose}
\usefonttheme[onlylarge]{structuresmallcapsserif}
\usefonttheme[onlysmall]{structurebold}
\usefonttheme{serif}
\setbeamerfont{author}{shape=\scshape,family=\rmfamily}
\setbeamercolor{title}{fg=black,bg=blue!20!white}\renewcommand{\thempfootnote}{\arabic{mpfootnote}}
\begin{document}
\begin{frame}
\begin{definiz}
nota a piede\footnote{nota}
\end{definiz}
\end{frame}
\end{document}`Ciao
Andrea
-
AutoreRisposte