How to copy minus as hyphen?

Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
There is a question about minuses in listings.
Is it possible to make (document-wide) the minus sign (âÂÂ) to look like the typographic minus, but be copied from the resulting PDF as the hyphen (-), used in source code?
math-mode symbols pdf copy-paste
add a comment |Â
up vote
2
down vote
favorite
There is a question about minuses in listings.
Is it possible to make (document-wide) the minus sign (âÂÂ) to look like the typographic minus, but be copied from the resulting PDF as the hyphen (-), used in source code?
math-mode symbols pdf copy-paste
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
There is a question about minuses in listings.
Is it possible to make (document-wide) the minus sign (âÂÂ) to look like the typographic minus, but be copied from the resulting PDF as the hyphen (-), used in source code?
math-mode symbols pdf copy-paste
There is a question about minuses in listings.
Is it possible to make (document-wide) the minus sign (âÂÂ) to look like the typographic minus, but be copied from the resulting PDF as the hyphen (-), used in source code?
math-mode symbols pdf copy-paste
math-mode symbols pdf copy-paste
edited 2 mins ago
asked 54 mins ago
homocomputeris
717
717
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
documentclassarticle
usepackageaccsupp
newcommandpdfminusBeginAccSuppmethod=escape,ActualText=--EndAccSupp
begindocument
$pdfminus A pdfminus B = C$
$-A - B = C$
enddocument

Copy/paste yields:
-A - B = C
ôÂÂÂA ô B = C
Is it possible to seamlessly substitute it, without creating a new command and typing it every time?
â homocomputeris
3 mins ago
@homocomputeris There is no way, in a general sense, to do this inpdflatex(maybe there is inlualatex...I don't know). What can be done is temporarily making-active and redirecting it topdfminuswithin the scope of theactiveminus. However, you can't leave it active all the time, or it screws up any calculation requiring a length or integer subtraction.
â Steven B. Segletes
32 secs ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
documentclassarticle
usepackageaccsupp
newcommandpdfminusBeginAccSuppmethod=escape,ActualText=--EndAccSupp
begindocument
$pdfminus A pdfminus B = C$
$-A - B = C$
enddocument

Copy/paste yields:
-A - B = C
ôÂÂÂA ô B = C
Is it possible to seamlessly substitute it, without creating a new command and typing it every time?
â homocomputeris
3 mins ago
@homocomputeris There is no way, in a general sense, to do this inpdflatex(maybe there is inlualatex...I don't know). What can be done is temporarily making-active and redirecting it topdfminuswithin the scope of theactiveminus. However, you can't leave it active all the time, or it screws up any calculation requiring a length or integer subtraction.
â Steven B. Segletes
32 secs ago
add a comment |Â
up vote
4
down vote
documentclassarticle
usepackageaccsupp
newcommandpdfminusBeginAccSuppmethod=escape,ActualText=--EndAccSupp
begindocument
$pdfminus A pdfminus B = C$
$-A - B = C$
enddocument

Copy/paste yields:
-A - B = C
ôÂÂÂA ô B = C
Is it possible to seamlessly substitute it, without creating a new command and typing it every time?
â homocomputeris
3 mins ago
@homocomputeris There is no way, in a general sense, to do this inpdflatex(maybe there is inlualatex...I don't know). What can be done is temporarily making-active and redirecting it topdfminuswithin the scope of theactiveminus. However, you can't leave it active all the time, or it screws up any calculation requiring a length or integer subtraction.
â Steven B. Segletes
32 secs ago
add a comment |Â
up vote
4
down vote
up vote
4
down vote
documentclassarticle
usepackageaccsupp
newcommandpdfminusBeginAccSuppmethod=escape,ActualText=--EndAccSupp
begindocument
$pdfminus A pdfminus B = C$
$-A - B = C$
enddocument

Copy/paste yields:
-A - B = C
ôÂÂÂA ô B = C
documentclassarticle
usepackageaccsupp
newcommandpdfminusBeginAccSuppmethod=escape,ActualText=--EndAccSupp
begindocument
$pdfminus A pdfminus B = C$
$-A - B = C$
enddocument

Copy/paste yields:
-A - B = C
ôÂÂÂA ô B = C
edited 27 mins ago
answered 33 mins ago
Steven B. Segletes
150k9188395
150k9188395
Is it possible to seamlessly substitute it, without creating a new command and typing it every time?
â homocomputeris
3 mins ago
@homocomputeris There is no way, in a general sense, to do this inpdflatex(maybe there is inlualatex...I don't know). What can be done is temporarily making-active and redirecting it topdfminuswithin the scope of theactiveminus. However, you can't leave it active all the time, or it screws up any calculation requiring a length or integer subtraction.
â Steven B. Segletes
32 secs ago
add a comment |Â
Is it possible to seamlessly substitute it, without creating a new command and typing it every time?
â homocomputeris
3 mins ago
@homocomputeris There is no way, in a general sense, to do this inpdflatex(maybe there is inlualatex...I don't know). What can be done is temporarily making-active and redirecting it topdfminuswithin the scope of theactiveminus. However, you can't leave it active all the time, or it screws up any calculation requiring a length or integer subtraction.
â Steven B. Segletes
32 secs ago
Is it possible to seamlessly substitute it, without creating a new command and typing it every time?
â homocomputeris
3 mins ago
Is it possible to seamlessly substitute it, without creating a new command and typing it every time?
â homocomputeris
3 mins ago
@homocomputeris There is no way, in a general sense, to do this in
pdflatex (maybe there is in lualatex...I don't know). What can be done is temporarily making - active and redirecting it to pdfminus within the scope of the active minus. However, you can't leave it active all the time, or it screws up any calculation requiring a length or integer subtraction.â Steven B. Segletes
32 secs ago
@homocomputeris There is no way, in a general sense, to do this in
pdflatex (maybe there is in lualatex...I don't know). What can be done is temporarily making - active and redirecting it to pdfminus within the scope of the active minus. However, you can't leave it active all the time, or it screws up any calculation requiring a length or integer subtraction.â Steven B. Segletes
32 secs ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457718%2fhow-to-copy-minus-as-hyphen%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
