A
A
Ar123sj2021-03-06 17:15:57
TeX
Ar123sj, 2021-03-06 17:15:57

BibTex compilation problem, how to implement bibliography output in an unusual template?

Good afternoon everyone, I will try to reveal the essence of the problem. There is a magazine template, they require the bibliography to be displayed through Bibtex, and through their template: that is, the style file contains a function that, when substituted as an argument, requires the name of the template and displays the bibliography. The problem is this: when compiling Latex->Bibtex->Latex at the Bibtex stage, it does not find functions related to it in the main aux file, because a separate aux file is created for the library. How to make Bibtex read a specific aux file when compiling? Shell TeXstudio. Journal -- link to the journal .

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
AVKor, 2021-03-06
@Ar123sj

I collected a sample from their website.
This line should be removed (can be commented out). Build in the following sequence (on the command line in the directory with these files):
\usepackage[caption=false]{subfig}

pdflatex sample
bibtex bu1
bibtex bu2
pdflatex sample
pdflatex sample

D
Denis Yanchevsky, 2017-12-18
@Mr_NoMore

Kind.
Pass a GET parameter and track with the pre_get_posts hook .

function toster489432_pre_get_posts($query) {
    if (!is_admin() && $query->is_main_query()) {
            if (isset($_GET['new'])) {
                $query->set('order', 'DESC');
            } else {
                $query->set('order', 'ASC');
            }
    }
}

add_action('pre_get_posts', 'toster489432_pre_get_posts');

Also, you can try to do a more elegant solution using add_rewrite_endpoint instead of a GET parameter.

M
Maxim E, 2017-12-18
@peapodru

See here about sorting in get_posts( )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question