Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mis-translate \bib item to Chinese #77

Open
rotcx opened this issue Nov 23, 2023 · 5 comments
Open

mis-translate \bib item to Chinese #77

rotcx opened this issue Nov 23, 2023 · 5 comments
Assignees

Comments

@rotcx
Copy link

rotcx commented Nov 23, 2023

image
image

case: 2311.12023

@rotcx
Copy link
Author

rotcx commented Nov 25, 2023

image

case: 2302.07842

@rotcx
Copy link
Author

rotcx commented Nov 25, 2023

image

case:
2002.05202v1

@rotcx
Copy link
Author

rotcx commented Nov 25, 2023

found one issue:
\citep [例如][] { ravi_optimization_2017,finn_model-agnostic_2017,hochreiter_learning_2001 }

\citep command with [options] not recognized by regexp

@rotcx
Copy link
Author

rotcx commented Nov 25, 2023

found one issue: \citep [例如][] { ravi_optimization_2017,finn_model-agnostic_2017,hochreiter_learning_2001 }

\citep command with [options] not recognized by regexp

In LaTeX, when using the natbib package, you can use the citep command with two square brackets to specify prenotes and postnotes for the citation. The first square bracket is for the prenote, which appears before the author and year of the citation, and the second square bracket is for the postnote, which appears after the author and year. For example:

\citep[see][pp.100-101]{smith2000}

This will generate a citation similar to "(see Smith, 2000, pp.100-101)".

Please note that the exact format of the citation may vary depending on the settings of natbib and the style of the bibliography (bibliographystyle).

temp solve by using

    pattern_citep = r'\\citep\[(.*?)\]\[(.*?)\]\{(.*?)\}'
    latex_obj_regex = [
        pattern_citep,

In order to control the scope of impact, I dare not be too abstract...

image

@rotcx
Copy link
Author

rotcx commented Nov 25, 2023

image

case:
1905.05067v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants