Referencia diferente

85 views
Skip to first unread message

Antonio Carvalho

unread,
Apr 30, 2023, 4:22:32 PM4/30/23
to late...@googlegroups.com
Prezados, 

Alguém saberia como posso editar as referências. Veja anexo. Todas as referências estão sendo imprimidas com uma parte do texto Sublinhado.  Eu deveria usar o padrao IEEE. Mas nao sei como ajustar p/ IEEE e ou mesmo corrigir para que nao saia Sublinhado
Alguma ideia e/ou sugestão?

Abc, 

Screenshot 2023-04-30 at 22.18.33.png

Elayson Abreu

unread,
May 1, 2023, 8:33:59 AM5/1/23
to Latex-br
Sem o código que você usou pra gerar as referências, é impossível te ajudar.

Escreva uma cópia do código no overleaf omitindo texto e pacotes dispensáveis e passe o link compartilhado pra gente.

Não esqueça de pôr o arquivo .bib com uma das referências que você mostrou na imagem, porque já vai ser o bastante pra gente tentar resolver.

Antonio Carvalho

unread,
May 1, 2023, 9:03:26 AM5/1/23
to late...@googlegroups.com
estou tentando aqui. Mas o arquivo 'e uma tese e 'e bem complexo, varios sub-arquivos. 
 Ao tentar copilar, nao gera ...mas envio o que fiz no arquivo anexo e tem as info e o arquivo .bib.  Pode me ajudar? 

--
Você recebeu essa mensagem porque está inscrito no grupo "Latex-br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para latex-br+u...@googlegroups.com.
Para ver essa discussão na Web, acesse https://groups.google.com/d/msgid/latex-br/3d77599a-682f-494e-b03e-8c85479b901fn%40googlegroups.com.
DEMO_refer.zip

Elayson Abreu

unread,
May 1, 2023, 10:12:43 AM5/1/23
to Latex-br
Nas opções da classe está escrito “biblatex”. Agora eu preciso saber quais as opções colocadas nesse pacote.

\usepackage[opções]{biblatex}

Essa informação pode estar no arquivo “Preamble/preamble”, dá uma olhada nele por favor e copia as opções aqui. Uma delas deve ser “style=...”.

Antonio Carvalho

unread,
May 1, 2023, 11:20:54 AM5/1/23
to late...@googlegroups.com
sera que seria essas informações? abaixo, veja:


% -*- root: ../thesis.tex -*-
%!TEX root = ../thesis.tex
% ******************************************************************************
% ****************************** Custom Margin *********************************
% Add `custommargin' in the document class options to use this section
% Set {innerside margin / outerside margin / topmargin / bottom margin}  and
% other page dimensions
\ifCLASSINFOcustommargin
  %\RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry}
  \RequirePackage[left=32mm,right=32mm,top=12mm,bottom=10mm,includeheadfoot,heightrounded]{geometry}

%\setlength\marginparwidth{2.3cm} %Die wird später zum Rechnen gebraucht, wird aber durch die Angabe im geometry package nicht automatisch richtig gesetzt.
  \setFancyHdr % To apply fancy header after geometry package is loaded
\fi
%\overfullrule=5pt

% Add spaces between paragraphs
\setlength{\parskip}{0.5em}

% To remove the excess top spacing for enumeration, list and description
%\usepackage{enumitem}
%\setlist[enumerate,itemize,description]{topsep=0em}

%: ----------------------------------------------------------------------
%:                  TITLE PAGE: name, degree,..
% ----------------------------------------------------------------------
% below is to generate the title page with crest and author name


% ********************** TOC depth and numbering depth *************************
% levels are: 0 - chapter, 1 - section, 2 - subsection, 3 - subsection
\setcounter{secnumdepth}{5} % organisational level that receives a numbers
\setcounter{tocdepth}{5}    % print table of contents for level 3
%

%
% ******************************************************************************
% ******************************** Custom Packages *****************************
% ******************************************************************************
% ************************* Algorithms and Pseudocode **************************
\usepackage{algorithm}% http://ctan.org/pkg/algorithms
\usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx
% ************************* Math packages **************************
%\usepackage{upgreek}
\usepackage{ntheorem}
\newtheorem{theorem}{Theorem}
% ********************Captions and Hyperreferencing / URL **********************
\usepackage{graphics} % for improved inclusion of graphics
%\RequirePackage{wrapfig} % to include figure with text wrapping around it
\usepackage[margin=10pt,font=small,labelfont=bf]{caption} % for improved layout of figure captions with extra margin, smaller font than text
\usepackage{chapterfolder}
\usepackage[all]{hypcap} % fix hyperref links to jump directly to Table or Figure
\usepackage{ulem}

% ********************** New Chapter layout *************************
\RequirePackage{titlesec}
\renewcommand{\chaptername}{} % uncomment to print only "1" not "Chapter 1"
% Special layout for chapter numbers
\titleformat{\chapter}[display]
{\bfseries\sffamily\Huge}
{\hfill\fontsize{140}{50}\selectfont\color{lightgray}\rmfamily\textbf{\thechapter}}% label
{-0ex}
%{\filleft moves all to the right side
{\filleft\fontsize{50}{50}}
[\vspace{-0ex}]
% *************************** Graphics and figures *****************************
\usepackage{placeins} %Defines a \FloatBarrier command
\usepackage[countmax]{subfloat}
\usepackage{subfig}
\usepackage{import}
\usepackage{subfigure}
\usepackage{float}
%:-------------------------- packages for fancy things -----------------------

\setlength{\columnsep}{20pt} % space between columns; default 10pt quite narrow

%\RequirePackage[usenames, dvipsnames]{color}


%:-------------------------- BibLatex ---------------------------

\usepackage{csquotes}
% ********************************** Tables ************************************
\usepackage{booktabs}
\usepackage{multicol} % for pages with multiple text columns, e.g. References
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{hhline}
%\renewcommand{\arraystretch}{1.2}
\usepackage{xcolor,colortbl}
%dashed line
\usepackage{array}
\usepackage{ragged2e}
%\usepackage{arydshln}
%\setlength\dashlinedash{0.2pt}
%\setlength\dashlinegap{1.5pt}
% use P instead of p for RaggedRight tabel columns e.g. begin{tabular}{P{2cm}|P{4cm}|P{3cm}|P{3cm}}
\newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}
%\setlength\arrayrulewidth{0.3pt}
% turn of those nasty overfull and underfull hboxes

% *********************************** SI Units *********************************

\usepackage[separate-uncertainty = true,multi-part-units=single]{siunitx}
\sisetup{
  locale = US ,
  per-mode = symbol,
  binary-units = true
}

% ********************** bibtex/biblatex *************************
%\usepackage{showframe}
\ifCLASSINFOcustombibstyle
\ifCLASSINFObiblatex
\usepackage[
    backend=biber,
    style=ieee,
    sortlocale=en_US,
    natbib=true,
    maxbibnames=50,
    url=true,
    doi=true,
    eprint=false
]{biblatex}

%\DeclareFieldFormat*{url}{}
%\DeclareFieldFormat[misc]{url}{\mkbibacro{URL}\addcolon\space\url{#1}}
%\DeclareFieldFormat*{urldate}{}
%\DeclareFieldFormat[misc]{urldate}{\mkbibparens{\bibstring{urlseen}\space#1}}

\AtEveryBibitem{%
  \ifentrytype{misc}{%
  }{%
    \ifentrytype{patent}{%
    }{%
      \clearfield{url}%
      \clearfield{urldate}%
      \clearfield{urlyear}%
    }%
  }%
}

\else
\usepackage[sort, numbers]{natbib}
\fi
\fi
\ifCLASSINFObiblatex
\addbibresource{9_backmatter/references.bib}
\DeclareSourcemap{
    \maps[datatype=bibtex]{
      \map{
           \step[fieldsource=doi, match={\regexp{\{\\textunderscore.?\}}}, replace={_}]
           \step[fieldsource=doi, match={\regexp{\{\\textless.?\}}}, replace={<}]
           \step[fieldsource=doi, match={\regexp{\{\\textgreater.?\}}}, replace={>}]
           %\step[fieldsource=doi, match={\regexp{\{\>.?\}}}, replace={>}]
      }
      %\map{
      %     \step[fieldsource=doi, match={\regexp{\{\\textless.?\}}}, replace={<}]
      %     %\step[fieldsource=doi, match={\regexp{\{\\textgreater.*\}}}, replace={>}]
      %}
      %\map{
      %     \step[fieldsource=doi, match={\regexp{\{\\textgreater *\}}}, replace={>}]
      %     %\step[fieldsource=doi, match={\regexp{\{\\textgreater.*\}}}, replace={>}]
      %}
    }
}
\fi



% ******************************************************************************
% ************************* User Defined Commands ******************************
% ******************************************************************************

% *********** To change the name of Table of Contents / LOF and LOT ************
\addto\captionsenglish{
%\renewcommand{\contentsname}{My Table of Contents}
%\renewcommand{\listfigurename}{My List of Figures}
%\renewcommand{\listtablename}{My List of Tables}
}
% ************************ Formatting / Footnote *******************************
       
% turn of those nasty overfull and underfull hboxes

%\hbadness=10000
%\hfuzz=50pt

\tolerance=1414
\hbadness=1414
\emergencystretch=1.5em
\hfuzz=0.5pt
%\widowpenalty=10000
\vfuzz=\hfuzz
% Ragged bottom avoids extra whitespaces between paragraphs
% But the buttom line is not euqalized anymore!
\raggedbottom

% TeX default is 50
\hyphenpenalty=750
% The TeX default is 1000
%\hbadness=1350
% IEEE does not use extra spacing after punctuation
\frenchspacing

\binoppenalty=1000 % default 700
\relpenalty=800     % default 500
   
\interfootnotelinepenalty=10000

% Don't break enumeration (etc.) across pages in an ugly manner
\clubpenalty=10000
\widowpenalty=10000

%\linepenalty=1000
%\looseness=-1

%\usepackage[defaultlines=4,all]{nowidow}

%\usepackage[perpage]{footmisc}

Elayson Abreu

unread,
May 1, 2023, 4:27:25 PM5/1/23
to Latex-br
O documento usa o arquivo ieee.bbx conforme a opção em biblatex. Nesse arquivo não existe formatação com sublinhado.

Talvez vc esteja usando o bibtex (um processador mais antigo), porque existe um condicional no arquivo “Teste.tex” que abre essa possibilidade. Se sim, não faço ideia de como resolver.

Antonio Carvalho

unread,
May 1, 2023, 4:53:12 PM5/1/23
to late...@googlegroups.com
@elayso...@gmail.com,  Elayson acabei de lhe enviar compartilhado o documento completop. Poderia dar uma olhada??
Muito obg pelo supporte.

Elayson Abreu

unread,
May 1, 2023, 5:40:54 PM5/1/23
to Latex-br
Por sorte eu achei o problema: o pacote ulem. Ele secretamente redefine \emph para fazer um sublinhado. Comente-o em “preamble.tex” e o problema se resolve. Se você precisa desse pacote então use \usepackage[normalem]{ulem} para que ele não redefina \emph.

Antonio Carvalho

unread,
May 1, 2023, 6:01:27 PM5/1/23
to late...@googlegroups.com
Muito obrigado!!!!
Bastou eu comentar (retinar) "%\usepackage{ulem}" que tudo funcionou como esperado.  
Muito agradecido pela solucao!!!!

Reply all
Reply to author
Forward
0 new messages