Hello again
cgnieder.
Yes, i can! I summarized my entire code for these lines:
Code: Select all
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{minted}
%################################
% Adjustments the numbers to copy
%################################
% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
\usepackage{accsupp}
\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}
%################################
\newminted{ruby}{fontfamily=courier,fontsize=\scriptsize,frame=single,linenos=true,framesep=2mm,showspaces=false}
\begin{document}
\begin{rubycode}
#==============================================================================
# ** Vocab
#------------------------------------------------------------------------------
# This module defines terms and messages. It defines some data as constant
# variables. Terms in the database are obtained from $data_system.
#==============================================================================
module Vocab
# Shop Screen
ShopBuy = "Buy"
ShopSell = "Sell"
ShopCancel = "Cancel"
Possession = "Possession"
# Status Screen
ExpTotal = "Current Exp"
ExpNext = "To Next %s"
# Level
def self.level
return $data_system.terms.level
end
# Level (Abbreviation)
def self.level_a
return $data_system.terms.level_a
end
end
\end{rubycode}
\end{document}
So when i copy this code, i want it to come like this:
Code: Select all
module Vocab
# Shop Screen
ShopBuy = "Buy"
ShopSell = "Sell"
ShopCancel = "Cancel"
Possession = "Possession"
# Status Screen
ExpTotal = "Current Exp"
ExpNext = "To Next %s"
# Level
def self.level
return $data_system.terms.level
end
# Level (Abbreviation)
def self.level_a
return $data_system.terms.level_a
end
end
But when I pasted it, looks like this:
Code: Select all
#==============================================================================
# ** Vocab
#------------------------------------------------------------------------------
# This module defines terms and messages. It defines some data as constant
# variables. Terms in the database are obtained from $data_system.
#==============================================================================
module Vocab
# Shop Screen
ShopBuy
ShopSell
ShopCancel
Possession
=
=
=
=
"Buy"
"Sell"
"Cancel"
"Possession"
# Status Screen
ExpTotal
= "Current Exp"
ExpNext
= "To Next %s"
# Level
def self.level
return $data_system.terms.level
end
# Level (Abbreviation)
def self.level_a
return $data_system.terms.level_a
end
end
Thankful.
Ps: I use Lyx.