Title

getref - Simulate academic references from CNKI and Google Scholar (Demo Version)

Syntax

getref query_string, saving(filename) [format(str) replace language(str) source(str) apikey(str)]

where query_string is the search term for academic references.

saving(filename) specify output filename (required)

format(str) output format: bib, tex, docx, or txt (default: bib)

replace overwrite existing file

language(str) query language: english or chinese (default: english)

source(str) data source: cnki or google (default: google)

apikey(str) API key for CNKI access (required for CNKI)

Description

The getref.ado program simulates retrieval of academic references from CNKI and Google Scholar
by generating placeholder reference data. This is a demonstration version that shows the
program structure and output formats without connecting to actual academic databases.

Important: This version generates simulated reference data for testing and demonstration
purposes only. The references produced are generic placeholders and do not represent real published
academic works.

This program demonstrates how researchers could create academic paper references in multiple formats
and is part of the suite supporting efficient operation of art2tex.ado and case2tex.ado programs.

Options

saving(filename) specifies the output filename where references will be
saved. This option is required.

format(str) specifies the output format. Valid options are:
bib - BibTeX format (.bib)
tex - LaTeX format (.tex)
docx - Microsoft Word format (.docx)
txt - Plain text format (.txt)
Default is bib.

replace allows overwriting an existing file.

language(str) specifies the query language. Valid options are:
english - English language queries
chinese - Chinese language queries
Default is english.

source(str) specifies the data source for references. Valid options are:
cnki - China National Knowledge Infrastructure (simulated)
google - Google Scholar (simulated)
Default is google.

apikey(str) specifies the API key for CNKI access. This is required when
using cnki as the data source, though in this simulation version any value
is accepted.

Examples

Simulate references from Google Scholar in BibTeX format:

. getref artificial intelligence, saving("ai_refs.bib") format(bib) replace language(english) source(google)

Simulate references from CNKI in BibTeX format:

. getref 人工智能 会计, saving("ai_accounting.bib") format(bib) replace language(chinese) source(cnki) apikey("demo_key")

Simulate references from CNKI in LaTeX format:

. getref 数字化转型, saving("digital_refs.tex") format(tex) replace source(cnki) apikey("demo_key")

Simulate references from Google Scholar in text format:

. getref corporate governance, saving("governance.txt") format(txt) replace language(english) source(google)

Output Details

Simulated Data: The current version generates 5 placeholder references with:

- Generic author names (Google Author 1, CNKI Author 1, etc.)

- Generic journal names

- Sequential years (2021-2025)

- Your search query embedded in titles

Format Specifications:

BibTeX: Generates .bib file with @article entries

LaTeX: Generates .tex file with \bibitem entries

Text: Generates .txt file with plain text references

Word: Generates .docx file with formatted references

Limitations and Future Development

Current Limitations:

- Generates simulated data only

- No actual API integration

- Fixed to 5 references per query

- Generic reference content

Planned Enhancements:

- Integration with real academic APIs

- Configurable number of results

- Real citation data extraction

- Advanced search filters

Authors

Wu Lianghai

School of Business, Anhui University of Technology (AHUT)

Ma'anshan, China

E-mail: agd2010@yeah.net

Wu Hanyan

School of Economics and Management, Nanjing University of Aeronautics and Astronautics (NUAA)

Nanjing, China

E-mail: 2325476320@qq.com

Chen Liwen

School of Business, Anhui University of Technology (AHUT)

Ma'anshan, China

E-mail: 2184844526@qq.com

Program written: 30th Sep., 2025 | Demo Version

Also see

get2ref, case2tex, art2tex, reftex