Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
errors with sout in latex writer
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
CircleCode  
View profile  
 More options Apr 6 2011, 11:36 am
From: CircleCode <codr...@gmail.com>
Date: Wed, 6 Apr 2011 08:36:14 -0700 (PDT)
Local: Wed, Apr 6 2011 11:36 am
Subject: errors with sout in latex writer
in latex template, it seems that
    \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
could be inserted before including hyperref
which would lead to error when producing the pdf from latex

simply moving
    \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
below seems to be sufficient to solve the problem.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fiddlosopher  
View profile  
 More options Apr 6 2011, 1:46 pm
From: fiddlosopher <fiddlosop...@gmail.com>
Date: Wed, 6 Apr 2011 10:46:31 -0700 (PDT)
Local: Wed, Apr 6 2011 1:46 pm
Subject: Re: errors with sout in latex writer
Sorry, could you give some more context?
Are you getting an error with pandoc?
If so, describe what you're doing and what error you get.

On Apr 6, 8:36 am, CircleCode <codr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CircleCode  
View profile  
 More options Apr 8 2011, 4:12 am
From: CircleCode <codr...@gmail.com>
Date: Fri, 8 Apr 2011 01:12:00 -0700 (PDT)
Subject: Re: errors with sout in latex writer
to be more precise, in the latex template (I've got it with `pandoc -D
latex`), the command
    \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
is called on line 50 (only if you have some striked text).

But hyperref is loaded on line 71 with command
    \usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]
{hyperref}

and \pdfstringdefDisableCommands is provided by hyperref package.

So when you try to "compile" a latex document which have striked text,
latex gives an error on line with `
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}` saying that
command `\pdfstringdefDisableCommands` is unknown.

I solved the problem by moving the block
    $if(strikeout)$
    \usepackage[normalem]{ulem}
    % avoid problems with \sout in headers with hyperref:
    \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
    $endif$
after line 71.

This was just an indication so that you could make the correction in
default latex template.

Matthieu

On Apr 6, 7:46 pm, fiddlosopher <fiddlosop...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CircleCode  
View profile  
 More options Apr 8 2011, 6:43 am
From: CircleCode <codr...@gmail.com>
Date: Fri, 8 Apr 2011 03:43:47 -0700 (PDT)
Local: Fri, Apr 8 2011 6:43 am
Subject: Re: errors with sout in latex writer
As an addition, I would also propose to replace the
    \usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]
{hyperref}
line by using the if xetex switch as follow:
    $if(xetex)$

    \usepackage{ifxetex}
    \ifxetex
      \usepackage{fontspec,xltxtra,xunicode}
      \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}

      \usepackage[
        setpagesize=false, % page size is defined by xetex
        unicode=false, % unicode breaks when used with xetex
        xetex
        ]{hyperref}
    \else
      \usepackage[mathletters]{ucs}
      \usepackage[utf8x]{inputenc}

      \usepackage[
        unicode=true
        ]{hyperref}
    \fi
    $else$
    \usepackage[mathletters]{ucs}
    \usepackage[utf8x]{inputenc}
    \usepackage[unicode=true]{hyperref}
    $endif$
    \hypersetup{
        breaklinks=true,
        pdfborder={0 0 0}
    }

This suggestion is because using unicode=true with xetex breaks
accentuated characters in bookmarks while using the combination
unicode=false,xetex does the job.

If you need myself to propose a pull request with corrected template
from my proposals, just ask me.

Regards.

Mat

On Apr 8, 10:12 am, CircleCode <codr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John MacFarlane  
View profile  
 More options Jul 23 2011, 12:45 pm
From: John MacFarlane <fiddlosop...@gmail.com>
Date: Sat, 23 Jul 2011 09:45:03 -0700
Local: Sat, Jul 23 2011 12:45 pm
Subject: Re: errors with sout in latex writer
Thanks, I've now fixed this.

+++ CircleCode [Apr 06 11 08:36 ]:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John MacFarlane  
View profile  
 More options Jul 23 2011, 12:50 pm
From: John MacFarlane <fiddlosop...@gmail.com>
Date: Sat, 23 Jul 2011 09:50:54 -0700
Local: Sat, Jul 23 2011 12:50 pm
Subject: Re: errors with sout in latex writer
Many thanks. I'll make this change too (or a similar one).

John

+++ CircleCode [Apr 08 11 03:43 ]:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »